ReadonlykeyKey code identifying which key triggered the event.
ReadonlymodifiersBitmask of keyboard modifiers (Shift, Ctrl, Alt, Meta) active when the key was pressed.
ReadonlytextUnicode text produced by the key press, if any.
Marks the event as handled so it will not propagate further.
Returns the name of this object's type.
Marks the event as unhandled so it propagates to parent widgets.
Returns true if the object is of the specified type.
Returns true if this object refers to the same instance as the given object.
Input event describing a keyboard key press, including key code, modifiers, and text.
Example