onKeyUp method

void onKeyUp(
  1. KeyboardEvent event
)

Keyup callback used to handle escape keys.

Implementation

void onKeyUp(KeyboardEvent event) {
  if (event.keyCode == KeyCode.ESC) {
    handleEscapeKey(event);
  }
}