/// <summary> /// Check if a key has been pressed /// </summary> /// <param name="key">Key to check</param> /// <returns>Returns true if key has been pressed</returns> public bool isPressed(Keys key) { if (prevState.IsKeyUp(key) && currState.IsKeyDown(key)) { return(true); } return(false); }