fixes direction of rotation using the keyboard