procedure TFatherForm.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if (key = VK_F3) and (Button1.Enabled = true) then begin
  key := 0;
  Button1.Click;
  end;
  if (key = VK_F4) and (Button2.Enabled = true) then begin
  key := 0;
  Button2.Click;
  end;
end;