public void RemoveKeyboardAction(Keys key, bool shift, bool control, bool alt) { int i = KeyboardActions.Count - 1; while (i >= 0) { KeyboardAction ka = KeyboardActions[i]; if (ka.Key == key && ka.Alt == alt && ka.Shift == shift && ka.Control == control) { KeyboardActions.Remove(ka); } i--; } }