unity check if spacebar is pressed code example Example: unity check if space pressed Input.GetKey("space");