fixed the arrow keys with velocity problem

I was not clearing the variable which concerned the rotation, so it make a arrow key giving velocity to the cube instead of position change.