🐱 Scratch for Kids · Lesson 3 of 7

Keyboard controls

Google Classroom

Move a sprite with the arrow keys.

The basket

For our game we need a basket that the player moves. Hover over the sprite button (cat face, bottom right), choose “Choose a Sprite” and search “Bowl” or “Basket”. Drag it to the bottom of the stage. You can delete the cat or keep it.

Arrow keys

  1. Events: “when right arrow key pressed” → Motion: “change x by 10”
  2. Events: “when left arrow key pressed” → “change x by -10”
  3. Try it: the basket moves left and right

x and y

The stage is a grid. x is left–right (−240 to 240), y is up–down (−180 to 180). The center is x: 0, y: 0. “change x by 10” moves right; “change x by -10” moves left.

Smoother movement

The “when key pressed” blocks stutter. Smoother: “when green flag clicked” → “forever” → “if key right arrow pressed? then change x by 10” and the same for left (Sensing + Control blocks).

Tip

💡 Start the game in the same place every time: “go to x: 0 y: -140” right after the green flag.

✏️ Practice: your turn

  1. Add a basket sprite at the bottom of the stage
  2. Make it move with the arrow keys
  3. Make the movement smooth with forever + if
  4. Make it start at x: 0, y: −140

✏️ Open the Scratch editor (free, in the browser) ↗

🧠 Quick quiz

Answer all 4 questions correctly to mark this lesson as done.

1. What does “change x by 10” do?
2. Where is the center of the stage?
3. How do you move left?
4. Why put the starting position after the green flag?

0 of 4 correct