Drag the pencil to draw. Hit "P" to switch back to the pencil when you are on the eraser. NOTE: THE CLICKING MIGHT NOT ALWAYS WORK; YOU MIGHT HAVE TO CLICK MORE THAN ONCE.
Thanks, Rae-TV for this, but all I did was remixed it, delete everything, and only used the sprite of the pencil.