- create your widget
- make sure it’s Focusable and has Keyboard Focus
- override onKeyDown and fire a CustomEvent
- switch depending on which button is pressed
If you want buttons to flash, add them to an array and trigger the appropriate [widget animation][2]. It can be done in the same switch as above.
