Or you could add a KeyPressed/Down/Up event to the object that should capture the F1, and use the event arguments to check what was pressed.

For example:


private void yourObject_KeyUp(object...