How to implement a shield block action?

Hello, I’m trying to make the character block when holding the mouse right click. So far I’m not sure how to implement the animation. I have an animation that ends with the player holding the shield. Therefore, the plan is to initially play the animation and stop it at the last frame to hold the blocking position while the mouse right click is held. Any ideas on how to tackle this? Thanks.
Shield Block Animation Ref

Nevermind, I solved the issue.