Bricklayer.Client.InputHandler.WasKeyPressed C# (CSharp) Method

WasKeyPressed() public method

Checks if a given key has been toggled (Was pressed last state, but now isn't)
public WasKeyPressed ( Keys key ) : bool
key Keys
return bool
        public bool WasKeyPressed(Keys key)
        {
            return CurrentKeyboardState.IsKeyUp(key) && PreviousKeyboardState.IsKeyDown(key);
        }