Click the space key to choose your color on the screen. And click the left click to paint or draw. Have fun.
I got this idea from Griffpatch. He has posted a video on this on YouTube. If you want to make this project by yourself I suggest you to go check griffpatch he explains clearly on how to make it, and you will really understand this concept clearly.