cleaned up code, removed useless parts
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.
Merge pull request #1 from ramanujam17/master

repo update