KeyDownEvent
Event triggered when a key is pressed down.
Typically used to detect the initial press of a key before it is released or repeated.
Inherits: Event
Properties
key- The key that was pressed down, such asA,ENTERorSHIFT_LEFT.
Properties
keyinstance-attribute
key: KeyboardKey | strThe key that was pressed down, such as A,
ENTER or SHIFT_LEFT.
A key that has no KeyboardKey member is a plain string,
such as "Ü".