*** keypress event thisform.xlastkey=nkeycode *** lostfocus event IF thisform.xlastkey=13 KEYBOARD '{DNARROW}{ENTER}' endif