Question:
I added a new parameter name Walk type trigger.
And a screenshot of the transition :

And the code in the Update :
Answer:
On your transition, you should uncheck Has Exit TimeKeeping this checked makes the animator wait until end of your transitioning animation.
If you have better answer, please add a comment about this, thank you!