Private void form1_keyup (object sender, system.windows.Forms.Keyeventargs E)
{
IF ((e.keycode == keys.f1)
}
e represents the button pressed, not the button bounced.
supplement:
Attribute Description ALT gets a value, which indicates whether the Alt key has been pressed. Control gets a value that indicates whether the CTRL key is pressed. Handled Gets or sets a value indicating whether this event is handled. Keycode gets the keyboard code for the KeyDown or Keyup event. KeyData Gets the key data of the KeyDown or Keyup event. KeyValue Gets the keyboard value of the KeyDown or Keyup event. Modifiers Get the modifier flag of the KeyDown or Keyup event. This indicates which modifier key (Ctrl, SHIFT, and ALT) has been pressed. SHIFT gets a value that indicates whether the Shift key is pressed.
If you want to judge, it is pressed with Shift F1.
IF (E.SHIFT && E.Keycode == Keys.f1)