KeyboardEvent.altKey.
KeyboardEvent.code -- physical key position (e.g., "KeyS", "Enter").
KeyboardEvent.ctrlKey.
KeyboardEvent.key -- character intent (e.g., "s", "Enter", "ArrowDown").
KeyboardEvent.metaKey.
KeyboardEvent.shiftKey.
Window that forwarded the keystroke.
One forwarded keystroke with its source window.
Example