Chuck,
First SET CONFIRM ON so the textbox won't lose focus until the enter or tab keys are pressed. Second, if you don't want the enter key to end up being pressed on teh next row of the grid you need to also issue a NODEFAULT as in;
IF nKeyCode = 13
KEYBOARD '{DNARROW}'
NODEFAULT
ENDIF