protected override void OnKeyDown(KeyEventArgs e) { e.Handled = true; e.SuppressKeyPress = true; if (e.KeyData == Keys.Delete || e.KeyData == Keys.Back) { Shortcut = null; } else if (KeyboardUtils.IsValidShortcutKey(e.KeyCode)) { Shortcut = KeyboardUtils.CreateShortcut(e); } }