Key (event)
From ComputerCraft Wiki
| Fired when any key except Escape is pressed while the terminal is focused. | |
| Returned Object 1 | The numerical key value of the key pressed |
Key scan codes
These scan codes are also available as constants in the keys API, and can be translated from numerical codes to strings using keys.getName.