Dashing based on movementinput

yea im trying to get their vectors and then implement the dash on it. This means that regardless of the player rotation or where its facing, i can dash based on the movement input, but i dont know how to call it