NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

Sprite Will Not Move When Pressing Keys

📌 What you will learn

Fix the #1 beginner bug: missing "forever" loop around "if <key pressed?>" or missing hat block.

Core approach

An "if <key pressed?>" snapped directly under "When green flag clicked" checks only for 1 millisecond and stops. Wrap it inside a "forever" loop!

  • Confirm a hat block ("When green flag clicked") sits at the top.
  • Wrap continuous key checks inside "forever".
  • Check that you did not accidentally put code on the Stage or a different sprite.

Pro tip & next steps

A glowing yellow outline around a script shows it is actively running.

All Troubleshooting Guides Browse more English guides in this section. Learn more → Scratch Block Dictionary Look up any Scratch 3.0 block with examples. Learn more →

FAQ

What is the best first step for "Sprite Will Not Move When Pressing Keys"?

Confirm a hat block ("When green flag clicked") sits at the top. A glowing yellow outline around a script shows it is actively running.

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.