keyboard module
Core framework Console Desktop
The keyboard module provides functions for managing keyboard input
| Functions | Description | Return value |
|---|---|---|
| keyboard.bind() | Binds a key to a function | |
| keyboard.isdown() | Checks if a specified key is down | boolean |
| keyboard.ispressed() | Checks if one or more keys have been pressed | boolean |
| keyboard.isup() | Checks if a specified key is up | boolean |
| keyboard.keyname() | Gets the key name corresponding to the provided character | string, booleans |
| keyboard.sendkeys() | Sends virtual key presses to other applications | boolean |
| keyboard.tostring() | Converts a combination of keys to a resulting string | string |
| keyboard.waitfor() | Waits for any key to be pressed asynchronously | string |