RosettaCodeData/Task/Keyboard-input-Keypress-check/LiveCode/keyboard-input-keypress-check-1.livecode
2016-12-05 23:44:36 +01:00

10 lines
249 B
Text

repeat 100 times
-- exit loop if "." or the escapeKey is pressed
if 46 is in the keysDown or 65307 is in the keysdown then
answer "exiting"
exit repeat
else
-- do stuff
wait 200 millisec
end if
end repeat