Second of all, use A D keys to move horizontally and W,S keys to move vertically! R is to let the pen draw on itself!
This is not my project. I just changed it to use WASD keys.