Hi, Set the form's KeyPreview to True.
In the OnKeyDown event, detect VK_F6
call the required function
set the Key to zero to cancel any Windows effects:
_________________
procedure Tmy_form.FormKeyDown(Sender: TObject; var Key: Word; Shift:
TShiftState);
begin
if Key=VK_F6
then begin
my_function;
Key:=0;
end;
...
__________________
regards,
Martin.

