Arrow keys to move, x to put the pen up, z to put the pen down, h to hide/ show the scratch cat. Press c to change colour. Click the green flag to clear.
I was able to do this with only one script and one sprite. You now can't move when scratch is hidden and pen is up at the same time. This is to prevent a glitch that used to happen.