public void Update(MyDebugSystem system, MyGuiInput input) { input.GetPressedKeys(m_pressedKeys); short modifier = 0; if (input.IsAnyAltKeyPressed()) modifier |= (short)MyShortcut.ModifierValue.Alt; if (input.IsAnyShiftKeyPressed()) modifier |= (short)MyShortcut.ModifierValue.Shift; if (input.IsAnyCtrlKeyPressed()) modifier |= (short)MyShortcut.ModifierValue.Control; foreach(Keys k in m_pressedKeys) { var key = (Keys)k; if (key == Keys.LeftAlt || key == Keys.RightAlt || key == Keys.LeftShift || key == Keys.RightShift || key == Keys.LeftControl || key == Keys.RightControl) continue; if (input.IsNewKeyPress(key)) OnKeyPressed(system, key, modifier); } }