public static bool IsKeyToggled(Keys key) { return KEY_TOGGLED == (GetKeyState(key) & KEY_TOGGLED); }