Use the arrow keys to move the pencil around. Press space (or click the flag) to restart. Press and hold "W" for "Pen down" Release for "Pen up"
I made this when first learned that you can change a variables look by right-clicking it.