This API allows you to refer to key codes by name, using the
keyboard.keys table. This is a two-directional table, for example, the value of
0x52, and the value of
keyboard.keys[0x52] is the string
Please see the Lua file containing the API's implementation for the list of available names.
Additionally it registers event listeners to keep track of the state of individual keys. This internal state can be queried using the following functions:
keyboard.isControl(char: number): boolean
Characterclass. Control characters are usually not printable.
keyboard.isKeyDown(charOrCode: any): boolean