key property

String key
final

The KeyboardEvent.key corresponding to this event.

The key represents the key pressed by the user, taking into consideration the state of modifier keys such as Shift as well as the keyboard locale and layout.

See developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key for more information.

Implementation

final String key;