i need this just for another project, but i think you also can need it ;D just move with arrow keys and you will see this thing rotates on the fastest way to the right angle. you cant press 2 keys at the same time, because that stops the engine (whyever!) :D
http://scratch.mit.edu/projects/28961364/ made for this project