How to make a player jump

Hi, I looked at the platform example for this but it was to confusing. So, how to you make your player properly jump. I tried making rule saying when key right is down, move up. Then I added the gravity to 1500. The problems are that there is no jumping limit so you can fly and when you jump on a surface and jump off you fall.
Thanks
Thanks
Comments
Actor receives event > key "right arrow" is down (click the plus sign to add another condition) Attribute > self.grounded > is true (click the plus sign to add yet another condition) Attribute > self.Motion.Linear Velocity Y = 0
Change Attribute > self.Motion.Linear Velocity Y - To:self.Motion.Linear Velocity.Y +400 (change that 400 number to a number that suits your needs)
I can't tell if you added gravity to the whole scene, or just put an acceleration on the actor, but Instead of gravity being on the entire scene, you could just add a downward acceleration to the actor of about 1500. If that's what you did, then disregard.