private void Preferences_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F1) { e.Handled = true; this.ShowHelp(); } }