Key Ideas
1Event Blocks — Triggers for Your Code. In Scratch, Events are things that happen — a key press, a mouse click, the flag being clicked. Event blocks are yellow and they trigger code to run when something hap...
2Keyboard Controls — Two Methods. There are two ways to detect key presses in Scratch. Choose based on what you need!
3Mouse Interaction. The mouse is another powerful way for users to interact with your Scratch projects. You can detect clicks, track mouse position, and have sprites follow the mouse!
4Build: Virtual Pet Toy 🐾. Let's build a virtual pet that responds to your keyboard and mouse! Press different keys to feed, play with, and make it dance!