Need help making smart movement

I want to make this game but I want better movement then the run and jump bundle that flowlab has. For exsample if I jumped then pressed a input it wouldn’t go through insted it would be more realistic to real life, or if left and right inputs were active then no inputs would go through. The problem I’m having is that I cant get the inertia jumps working, can someone help me figure this out?

Heres the game im making: Smart movement - Flowlab Game Creator

Just use switches that disable jumping when you’re moving and vice versa.

@Coofin I had to change your suggestion a little bit since it was also a problem with the logic but I ended up getting it working.

Heres the code if you want to see it:

Ok cool glad you figured it out.