Press the space bar to get the selected colour. Click to draw with the selected colour.
Thanks to @griffpatch!