Space to change color pencil. Z to clear. To control pencil thickness, use slider.
@yazlo for the pencil. I did all of the coding. I also changed the colors of the pencils so that you know what color it is!