title: Is there a *shortcode* to make the ball (player) jump if i press a keyboard button?
body: <p>I'm trying to find the shortest code I can use to jump ( without using Rigidbody )</p>
  
  <p>I am a beginner and I used the Unity engine,
  I try to learn basics using the shortest codes,
  I want to learn how to make the ball jumping when i press UpArrow or any key i select .</p>
  
  <pre><code>float Speed = 4;  
  float ground;
  
  void Start()
  {
      ground = transform.position.y;
  }
  
  void Update()
  {
      if (Input.GetKey(KeyCode.RightArrow))
      {
          transform.Translate(Time.deltaTime * Speed, 0, 0);
      }
  
      if (Input.GetKey(KeyCode.LeftArrow))
      {
          transform.Translate(Time.deltaTime * -Speed, 0, 0);
      }
  
      if (ground == transform.position.y &amp;&amp; Input.GetKey(KeyCode.UpArrow))
      {
          // stucked here XD
      }
  
  
  }
  </code></pre>