Lock jump button while in air?

Hello, I am very new to programming and need to know how I can lock the jump button while my character is in the air. Currently my character uses energy to jump and if I keep pressing the jump button while in the air it keeps using energy. How can I prevent this?

Add a variable called UseEnergy. Right before you subtract .2 energy put it in an if statement, and only subtract if true. After you subtract away the .2 energy set it to false.
Right click and add an event on landed and then set the variable to true.

Thanks for the assist. Works like a charm.

Np.

Please accept answer for tracking purposes.