How to add a jump key

I have a game where you roll a ball around and collect yellow spheres. Right now, you can move horizontally and vertically, but I want there to be a way the player can make the ball jump. How would I do that? (I only use C-Sharp script) All answers are appreciated. Thanks in advance!

It would be useful to google the issue before posting it.

Nevertheless, a few examples are given. The first one is if you want to use the standard physics and rigidbody. The second is custom solution for gravity behaviour.

  1. One
  2. Two (You may use transform.Translate instead of controller.Move)

You should check Youtube for tut’s, here is one i found this may help.