add intermiate code for implementing rotation based on keyboard input