keys.getName

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

ExampleGet a key name
Get the name for the key code 50 and print it.
Code
<nowiki>
print(keys.getName(50))
    </nowiki>
Output m

keys.getName
Function
Syntax
keys.getName(
  • keyCode : number
)

Returns string keyName
API keys
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.