Skip to content

Keyboard ​

python
Keyboard(keyboard: DotNetKeyboard)

Controls the keys held down on the emulated keyboard.

Source

Properties ​

pressed ​

python
pressed: Keys

The set of keys currently held down.

Source

Methods ​

depress ​

python
depress(value: Keys)

Release the supplied keys, leaving other keys unchanged.

Source

depress_all ​

python
depress_all()

Release every key.

Source

press ​

python
press(value: Keys)

Hold down the supplied keys without releasing other keys.

Source