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

IsKeyPressed() public method

Checks if a given key is currently being pressed (Was not pressed last state, but now is)
public IsKeyPressed ( Keys key ) : bool
key Keys
return bool
        public bool IsKeyPressed(Keys key)
        {
            return CurrentKeyboardState.IsKeyDown(key) && PreviousKeyboardState.IsKeyUp(key);
        }