AnonymusHochgenuss

keytester

Apr 12th, 2026
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("--- Key Code Finder ---")
  4. print("Press any key to see its ID.")
  5. print("Hold Ctrl+T to exit.")
  6. print("-----------------------")
  7.  
  8. while true do
  9. local event, key = os.pullEvent("key")
  10. local name = keys.getName(key)
  11. print("Key: " .. (name or "Unknown") .. " | ID: " .. key)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment