Click to draw. C to erase all. Up arrow to stop drawing. click to resume. E to use the eraser tool. Change the pen size by dragging the pen size variable. Space to change the backdrop.
Thanks to @monopoly57 for all the code.