In KeyPress event of the form:
IF TYPE("thisform.ActiveControl") == "O" .AND.;
thisform.ActiveControl.Name = "NameOfTheGrid" .AND.;
INLIST(nKeyCode, -1, ....)
NODEFAULT
RETURN
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.