To make it work hover your mouse over the canvas, hold left mouse to stop drawing. Hit tab to change color to black, hit backspace to change to green, hit delete to change color to red, or hit enter to change color to blue.
Coded Canvas