procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin Form2.ShowModal; end;