public static bool IsKeyLocked(MemoryApi.KeyCode vk) { return((((ushort)MemoryApi.GetKeyState((int)vk)) & 0xffff) != 0); }