public static bool isKeyUnpressed(Keys key) { if (currentState == null || priorState == null) return false; return currentState.IsKeyUp(key) && !priorState.IsKeyUp(key); }