Is this unilateral Knee pain?
Any history of external trauma to knee?
What is the severity of pain?
Any associated swelling?
Any associated instability of knee joint?
From your history this seems to be Strain or sprain .These are minor injuries to the ligaments caused by sudden or unnatural twisting and not any serious injury like meniscus tear .
This pain should resolve by self care:
Rest and avoid activities that aggravate the pain
Take over-the-counter pain medication like ibuprofen (Advil, Motrin ) if necessary to reduce pain.
Motrin 200 mg SOS ( as required )
Sleep with a pillow underneath or between your knees.
Use ace bandage to prevent mobility and support the knee.
Check this link for a photo
If the pain persists you should seek medical advice.