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.
Properties
keyinstance-attribute
key: strThe key that was pressed down.
Represents the physical key (e.g., , , ) that triggered the key down event.