KeyEvent

constructor(type: KeyEvent.Type, key: Key, modifiers: Set<InputModifier>, characters: String?)

Parameters

type

Nature of the event.

key

Key the user pressed or released.

modifiers

Additional input modifiers for keyboard shortcuts.

characters

Characters generated by the keypress, if any.