Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local event, key, isHeld = os.pullEvent("key")
- write( keys.getName( key ) )
- print( isHeld and " is being held." or " was pressed." )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement