Another possibility is to call the WinAPI function GetAsyncKeyState to see what keys are pressed. The advantage of this method is you can check to see if a combination of CTRL-ALT-SHIFT are held down, since any other key will be putting keystrokes in the keyboard buffer. This solution would also use a timer as Hilmar suggested, but the timer would be running continuously.
For example, if you look for the SHIFT-CTRL combination, the code would look like this:
Form.LOAD
DECLARE SHORT GetAsyncKeyState IN USER32.DLL INTEGER
Timer.Timer
IF GetAsyncKeyState(0x10) <> 0 ;
and GetAsyncKeyState(0x11) <> 0
ELSE
ENDIF
A list of the available keycodes is
here.
-Tom
[This posting is provided "AS IS" with no warranties, and confers no rights.]