CS Discoveries | Board Events https://studio.code.org/docs/csd/maker_event/index.html
The onEvent() block is used to set up event handlers that can watch for certain events to occur in your app, such as clicking on a button, selecting an item from a dropdown, or moving the mouse. The Circuit Playground has a similar block called onBoardEvent() to watch for events that occur on the board. Similar to onEvent(), you need to specify what the handler should be watching, what event to watch for, and how to respond to that event.