Press and hold to draw. Click space to erase all, and use up and down arrows to adjust the thickness of the pen.
This coding is all mine btw.