subroutine OS_QueryShiftKey(boolean: WasDown)
subroutine OS_QueryCtrlKey(boolean: WasDown)
subroutine OS_QueryAltKey(boolean: WasDown)
Returns whether the specified key was down when the last event happened.
# NB: If you call these subroutines in a loop, the loop must also contain a block. Without a block, no events will be processed, and the boolean will never change value.
A suitable block is...
make stimulus disposition all hold
begin guarded
response to timeout -1
leave block
end
make stimulus disposition all normal