How do I animate a curled line?

I am trying to animate a staple being formed. It starts like a square “C” and turns into a “B” shape.

It keeps malforming. I need it to hit the concave stop, follow around and end up in the shape of the B.

Help, I am getting frustrated