If you mean switching at runtime, then:
. Switch to the previous layout orientation (for example, portrait, landscape): KEYPAD_7, Ctrl-F11. Switch to the following layout orientation (e.g. portrait, landscape): KEYPAD_9, Ctrl-F12
This is what you need?
source share