This snippet can be used to make your sprite jump.
When you press the spacebar the sprite will rise 10 pixels and that will be repeated 5 times. Then the sprite wait at the top of your jump for 0.01s, and then fall by 5 pixels and that gets repeated 10 times.
The reason the fall is slightly different is to slow it down, making it more realistic, even though the total amount travelled up and down is the same.
The code can be found here: