How to fix dash stopping

it works fine but if you move while dashing it just pushes you a few pixels instead, i think its because if your moving you its setting your velocity and overriding the dash impulse, please help me fix this, it would also be nice if you could give me a few tips to make my dashing more smooth, even with just a cube (for now)

turn off the ability to walk with a switch for a moment when activating the dash.

it works but it doesnt feel right when im on the ground. it works in the air but if im just moving on the ground it feels weird, i hope testing the game will help you get it to feel right