keys.getName

From ComputerCraft
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

keys.getName
Function
Syntax
keys.getName()
Returns string keyName
API keys
Source CC:Tweaked (source)

Returns the key name of a numerical key code. Returns nil if the key code is not valid.

ExampleExampleGet a key name
Get the name for the key code 50 and print it.
Code
print(keys.getName(50))
Output m