title: What's the equivalent of GetKey in the new unity input system?
body: <p>There's Started, Performed and Cancelled, but what if I want to detect if I'm holding down the button on a Gamepad. So basically, how do i rewrite this to a gamepad with the new input system.</p>
  
  <pre><code>private void Jump()
      {
          if (isTouchingGround == true &amp;&amp; Input.GetKeyDown(KeyCode.Space))
          {
              isJumping = true;
              jumpTimeCounter = jumpTime;
              myRigidbody2D.velocity = new Vector2(myRigidbody2D.velocity.x, 1 * jumpSpeed);
          }
  
          if (Input.GetKey(KeyCode.Space) &amp;&amp; isJumping == true)
          {
              if (jumpTimeCounter &gt; 0)
              {
                  myRigidbody2D.velocity = new Vector2(myRigidbody2D.velocity.x, 1 * jumpSpeed);
                  jumpTimeCounter -= Time.deltaTime;
              }
              else
              {
                  isJumping = false;
              }
          }
          if (Input.GetKeyUp(KeyCode.Space))
          {
              isJumping = false;
          }
      }
  </code></pre>