|This article or section contains information about a feature from a future version of Scratch that is unreleased and is subject to change. Please cite any additional info in order to prevent speculation.|
|When () button pressed|
The When () button pressed block is a hat block used as part of the Micro:bit extension. When either the A button or the B button is pressed, this block triggers an event.
Triggering an event on the project's stage.