Use the arrow keys to move the gem. 'u' key moves the pen up, and 'd' key moves the pen down. 's' key increases the thickness of the pen.
Thanks to Create and Learn for the ideas.