Animations issue

I have an animation of drawing out a pistol, it works but when it finishes my legs no longer move when i walk and i am stuck in the finished pose. How do i make it go back to normal and how do i make it where i can walk and still aim down sights?