Nier Automata dodge system

This is my first post here :D. I will like to know if you guys have any idea how to implement Nier Dodging.
While the dodging animation is playing, the player can still change the direction you are facing.

Thanks in advance