//ON KEYPRESS
if Key = #13 then begin
Key := #0;
if (Sender is TDBGrid) then
TDBGrid(Sender).Perform(WM_KeyDown,VK_Tab,0)
else
Perform(Wm_NextDlgCtl,0,0);
end;
WM_KeyDown not exists
Wm_NextDlgCtl not exists
VK_Tab not exists
this code funcions in a Delphi