Assuming you don't have screen lock on, try rebooting your iPad. Once mine got stuck after using an app (Pocket Frogs) that only runs in one orientation, and that fixed it. It hasn't happened again since, and I play the game several times a day; no clue what caused it that time.