keys.getName
From ComputerCraft Wiki
Function keys.getName | |
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
Example | |
Look up the name of key code 42. | |
Code |
print(keys.getName(42)) |
Output | leftShift |