procedure TForm1.Button1Click(Sender: TObject);var aSS: TShiftState;begin aSS:=GetKeyShiftState; if ssCtrl in aSS then writeln('Ctrl'); if ssAlt in aSS then ; //anythingend;