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