Directional Dash! Someone pls help

Well I don’t know if you figured it out but here is how I implemented a dodge mechanic in mine. For mine it checks whether you’re on the ground and if you tap one of the WASD keys twice you dodge to the side, forward etc.
Sorry if the pic came out bad…

EDIT: Forgot to mention the custom event dodge is being called through the tick function

a5436c2136118f2da09e4fc53a4939e7d387943d.jpeg