Even if the character is already in mid-air, it jumps whenever the player presses the space bar. You can see this behaviour if you hold down the space bar.
Can you change the character sprite’s code for jumping so that your character can only jump if
it touches a blue platform?