Skip to main content
Represents a keyboard interaction.

Fields

key

The key code of the pressed key.

shift

True if the Shift modifier is active.

control

True if the Control modifier is active.

alt

True if the Alt modifier is active.

meta

True if the Meta (Command/Windows) modifier is active.

phase

The current phase (KeyPhase) of the interaction.