Rotate ONCE!

I want something to rotate ONCE only when the left key is pressed, but i can’t figure it out. Can anyone please help?