Skip to main content

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: str

The key that was pressed down.

Represents the physical key (e.g., , , ) that triggered the key down event.