OptionalaltReturns a boolean value that is true if the Alt (Option or ⌥ on macOS) key was active when the key event was generated.
OptionalcodeReturns a string with the code value of the physical key represented by the event.
OptionalctrlReturns a boolean value that is true if the Ctrl key was active when the key event was generated.
OptionalkeyReturns a string representing the key value of the key represented by the event.
OptionalmetaReturns a boolean value that is true if the Meta key (on Mac keyboards, the ⌘ Command key; on Windows keyboards, the Windows key (⊞)) was active when the key event was generated.
OptionalshiftReturns a boolean value that is true if the Shift key was active when the key event was generated.
Information from a KeyboardEvent that is relevant to identifying a key press/release