Bone snaps back to its original position when setting new keys
Another clue, can be an other constraint is on the chain and conflicts.
In this case, you have 2 bones colored in yellow in the chain.
So delete or fit conflicting constraint.