Sounds like you’re doing it right. I don’t touch the WASD keys after activating the animation, but that is probably not the problem.
Official or private server? Single player? What weapon?