DECLARE INTEGER GetKeyState IN WIN32API INTEGER IF GetKeyState(VK_F1) < 0 * F1 is down ENDIFFor key codes see Re: Is there a way to detect a Key being help down? Message #633669. For details see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/getkeystate.asp
>do case > case nkeycode= 84 and nShiftAltCtrl=1 &&shift+F1 > nodefault > thisform.button1.click >endcase>