procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin if key = #13 then Label1.Caption:=Edit1.Text; end;