My ipad's orientation is screwed. App and os having different orientation than keyboard
What troubleshooting steps have you tried... have you consulted the User Guide...
Have you tried a Reset... http://support.apple.com/kb/ht1430
Understanding the Side Switch
Reset the device:
Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
If that doesn't help, tap Settings > General > Reset > Reset All Settings
....... This link to whats happening
Closed all app then restarted It usually corrects itself after restarting but then after some time again goes back to problem state. I think it is mainly because of old app which are still not updated for ios 7 .
Retrieving data ...