Ability using energy

I was trying to make a dash ability wich works only if you have enough energy.It works fine the only problem being that I can spam the left click mouse ( the input for dashing ) and finish the energy. I have a small delay of 5 sec so you cant use the dash immediately.How can I set it so in that 5 seconds of delay if you press the left click you dont lose energy?

Thank you!

I asume Boost is your Energy? If so move the Set Boost node after the second Branch, done.