Use the arrow keys to move, the space key to let go of the "pencil", and X to put the pencil back down. Press the "Color" Button to change the color.
I learnt how to do this by the scratch tutorials on here. Have fun, and don't forget to experiment!