SCRATCH GOLD II
SCRATCH GOLD I
2 of 3

5.07 Challenge: keyboard commands

Challenge: keyboard commands

Can you add code so that, instead of clicking on the coloured squares or buttons on the Stage, you can make things happen by pressing keyboard keys? For example:

  • b = Switch to blue pencil
  • g = switch to green pencil
  • e = switch to eraser
  • c = clear screen

If you want to, you can also add code so that pressing the arrow keys changes the pen width.

×
×

Cart