>Hi Tore
>
>>Don't use keyboard(), it can have side effects. This code in KeyPress is better
>>If nKeyCode=13
>> NoDefault
>> DoDefault(9,nShiftAltCtrl)
>>EndIf
>
>It did not work for me, the cursor stays put in the field.
>
>Thanks.
Try
If nKeyCode=13
this.lostfocus()
EndIf