I'm not sure this is the simplest way, but it should work if you have to look for keydowns inside of a long-running loop:
(note: I've never used the "with messages" syntax, but I believe this is how it works) on keyDown theKey global lastKey put theKey into lastKey end keyDown on mainLoop global lastKey repeat presentSomeObjects wait 1 with messages -- this should let your keyDowns get through once per loop switch (lastKey) -- process the key end switch put empty into lastKey end repeat end mainLoop _______________________________________________ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard