Examples Delphi

The below code shows us how to call ENTER key in delphi
procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if key = #13 then //when user presses ENTER go to edit1 textbox
edit1.setfocus;
end;