Optional
altReturns a boolean value that is true if the Alt (Option or ⌥ on macOS) key was active when the key event was generated.
Optional
codeReturns a string with the code value of the physical key represented by the event.
Optional
ctrlReturns a boolean value that is true if the Ctrl key was active when the key event was generated.
Optional
keyReturns a string representing the key value of the key represented by the event.
Optional
metaReturns 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.
Optional
shiftReturns 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