keys.getName
From ComputerCraft Wiki
| Looks up the name of a key given its numerical key code. | |
| Syntax | keys.getName(int code) |
| Returns | string the name of the key |
| Part of | ComputerCraft |
| API | keys |
Examples
| Look up the name of key code 42. | |
| Code |
print(keys.getName(42)) |
| Output | leftShift |