Dash attack after a jump

I want to make my character can do a dash attack in the air like in the cuphead game, could you help me with the events?

Someone shared a code that may help you. Is in the community section and the title is:

State machine with 3 attacksattacks combo, 3 air attacks, dash, wall jump