LPARAMETERS nKeyCode, nShiftAltCtrl LOCAL tnKey tnKey = LASTKEY() SUSPEND DO CASE CASE tnKey = -4 &&F5 THISFORM.cmdValidate.CLICK() CASE tnKey = -5 &&F6 THISFORM.cmdManual.CLICK() CASE tnKey = -6 &&F7 THISFORM.cmdCancel.CLICK() ENDCASEWhen I press F5, both the value of tnkey and nLastkey is 42! What gives?