Use arrow keys. That's it.
Look inside the project if you want to know how it works. It's not hard when you understand trigonometric functions (sin, cos, atan).