Key Simulation Module (key)
- ! Press a physical key (key.press)
- Hold down a physical key (key.down)
- Release a physical key (key.up)
- ! Type text via key events (key.send_text)
- Input text (key.input_text)
- Samples and supported key codes
The following hardware keyboard functions and methods are available in versions after 20260805
- ! Create an independent hardware keyboard (key.connect_keyboard)
- ! Connect a global hardware keyboard (key.connect_global_keyboard)
- Get the current global hardware keyboard (key.get_global_keyboard)
- Disconnect the global hardware keyboard (key.disconnect_global_keyboard)
- Hold down a hardware keyboard key (:down)
- Release a hardware keyboard key (:up)
- ! Press a hardware keyboard key (:press)
- ! Type text with a hardware keyboard (:send_text)
- Check whether a hardware keyboard is connected (:is_connected)
- Get hardware keyboard properties (:get_properties)
- Disconnect a hardware keyboard (:disconnect)