Use 1,2,3,4,5 keys to change color and space to erase all or use the 9 key to use the eraser
I got the idea from @zak-the-rat's drawing game https://scratch.mit.edu/projects/407099274/