Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local sEvent, param = os.pullEvent("key")
- if sEvent == "key" then
- if param == 87 then
- print("Key W")
- elseif param == 65 then
- print("Key A")
- elseif param == 83 then
- print("Key S")
- elseif param == 65 then
- print("Key D")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement