So sorry,
I was testing this on Mac OSX 10.9.2 with LiveCode 7.0 dp 4
So this seems to work in a "new" stack by itself but not in the stack I was testing.
I downloaded this tetris stack
http://livecodegamedeveloper.com/blog/2 ... -tetris.lc from a thread on the use list and noticed that it was not working on my Mac OSX machine. So I put in a couple of answer commands but no luck. I then put in a rawKeyDown and got it to work using the arrow keys that way.
on arrowKey pKey
put pKey into sKeyPress
-- answer sKeyPress
pass arrowKey
end arrowKey
on keyDown pKey
if pKey = space then put "space" into sKeyPress
-- answer sKeyPress
pass keyDown
end keyDown
on rawKeyDown pKey
if pKey is 65361 then put "left" into sKeyPress
if pKey is 65363 then put "right" into sKeyPress
if pKey is 65362 then put "up" into sKeyPress
if pKey is 65364 then put "space" into sKeyPress
--answer pKey
end rawKeyDown
So after downloading this stack
http://livecodegamedeveloper.com/blog/2 ... -tetris.lc can you use the arrow keys to get it to work?
Tom