Keep character walking animation on collision

Hi, i´ve noticed that in every single 3rd person game when the character meets a wall or another collision object if you keep presing the joystick or the keyboard, the walking/running animation keeps playing even if the character is being blocked.
The problem with the unreal engine setup is that as soon as the character collides with something, the movement stops and so the animation since the blending space variable is being driven by the character velocity.

So i want to know if there´s a way to actually keep the animation playing on collisions and at the same time, have the blending space transitions based on the input of the joystick.

Thank you for you time!