How Do I make my object(ball) to jump with physics without it flying away

I am having problems with physics. I can comfortably move left and right (by using force) but I am not sure how to make my object jump yet. I used the linear velocity event but anytime i press the up key, It keeps going up, gravity doesn’t pull it down and it keeps flying. How do I solve this