How can I interrupt an animation state transition?

I have a state machine for a bird flapping animation that I’m trying to make responsive to every flap trigger.

In my state machine, I have an idle cycle that transitions to a flap animation upon a flap trigger and transitions back to idle after the flap is done. The transition back to idle is a bit long at .5 seconds, and if I hit the flap button in the middle of that transition then it doesn’t return back and run the flap animation. How can I interrupt that transition before it’s finished and run my flap animation mid transition?