Directional Dash! Someone pls help

Posting from my phone, so don’t have access to my actual files right now, but I have a dash that relies on a “mode”. In other words; you have general moment, but you also have a “focused” mode you enter by holding a key, at which point the movement changes from turning to strafing, and double tapping a strafe direction will dash.

My mode also prevents dashing in air, as I found that to be a bit spammy.

I can post it later if anyone is interested.