* KeyPress LPARAMETERS nKeyCode ... IF nKeyCode = -8 && F9 NODEFAULT && Stop VFP key processing Thisform.Whatever.Click() ENDIFNow why doesn't OKL work. Because the command assinged to the OKL is being run outside of the form and therefore the Thisform reference means nothing. Also OKL's are intercomand interrupts, that means they will interrupt running code. In VFP the only valid reason to use an OKL is to interrupot running code and even that can be accomplished without using an OKL.