Two buttons in a confirmation dialog look simple: Cancel and Confirm. Keyboard behavior makes the component a small state machine. A recent MonkeyCode change gives us a concrete example.

Source: [Dev.to](https://dev.to/babycat/add-arrow-key-shortcuts-to-a-confirmation-dialog-without-breaking-accessibility-220g)

Sponsored