Key and Button Presses come in 3 flavors. Get button Down and Get button up are both basically a Boolean state that can only be true for a quick moment . Get Button will be true while you hold the button.
So try something like state1 (Get Key ) goto state2 and rotate in desire direction but (on key up) go back to state1.