private bool IsKeyToggled(Keys key) { return((NativeMethods.GetKeyState((int)key) & 1) == 1); }
private bool IsKeyDown(Keys key) { return((NativeMethods.GetKeyState((int)key) & 0x8000) != 0); }