public MyGuiLocalizedKeyboardState()
        {
            m_actualKeyboardState = MyWindowsKeyboard.GetCurrentState();

            if (m_localKeys == null)
            {
                m_localKeys = new HashSet <byte>();

                AddLocalKey(MyKeys.LeftControl);
                AddLocalKey(MyKeys.LeftAlt);
                AddLocalKey(MyKeys.LeftShift);
                AddLocalKey(MyKeys.RightAlt);
                AddLocalKey(MyKeys.RightControl);
                AddLocalKey(MyKeys.RightShift);
                AddLocalKey(MyKeys.Delete);
                AddLocalKey(MyKeys.NumPad0);
                AddLocalKey(MyKeys.NumPad1);
                AddLocalKey(MyKeys.NumPad2);
                AddLocalKey(MyKeys.NumPad3);
                AddLocalKey(MyKeys.NumPad4);
                AddLocalKey(MyKeys.NumPad5);
                AddLocalKey(MyKeys.NumPad6);
                AddLocalKey(MyKeys.NumPad7);
                AddLocalKey(MyKeys.NumPad8);
                AddLocalKey(MyKeys.NumPad9);
                AddLocalKey(MyKeys.Decimal);
                AddLocalKey(MyKeys.LeftWindows);
                AddLocalKey(MyKeys.RightWindows);
                AddLocalKey(MyKeys.Apps);
                AddLocalKey(MyKeys.Pause);
                AddLocalKey(MyKeys.Divide);
            }
        }
 public void UpdateStates()
 {
     m_previousKeyboardState = m_actualKeyboardState;
     m_actualKeyboardState   = MyWindowsKeyboard.GetCurrentState();
 }