basically moving up and down and jumping is the same thing - sprite moves on Y axis. If you are using 8Direction behavior for movement you can then simply disable it when jump key is pressed. move (or animate) sprite along -Y axis, and when jump is finished enable 8Dir again.
Limitation of this is that you can't move while jumping.
If you wan't to move and jump at the same time do it same way but instead of disabling behavior add an offset for Y position.
You can enable an event like, (invert) when player is on collision with), floor or objects). then set a keyboard command to move the player when in the air then cancel it on collision with desired objects, yes its a bit more code but atleast when progressing with the game you can add objects to the event or sub events which will give more variety.