Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local event, key = os.pullEvent()
- if event == "key" then
- local key = key
- if key == 265 then
- print("up arrow")
- elseif key == 264 then
- print("down arrow")
- else
- print("invalid key")
- end
- end
- end
Add Comment
Please, Sign In to add comment