How to make a dash mechanic?

I just want to make a short air dash mechanic, that can only be used in the air.

You know how in the run and jump bundle, you cant jump till you hit the ground? Maybe have it so when you hit jump button it opens a switch thing and you can hit the dash button, then when player hits the ground they cant hit the dash button anymore?

Ill try this, It sounds like it should work

but where do I get the switch block?