animation weird

I have this machine gun without any animations imported into Unity from Blender by fbx. I have seperated clip, trigger, and machine gun body.I tried to make a reloading animation in Unity so it won’t get me messed up on the script. But somehow it was weird. For example, when I rotate the gun and get the clip of the gun out and tried to finish and look at the animation I have done, it worked for the first some frames then it started to spin quickly around randomly, so was the clip. I tried to curve the keys into the right position, but it still spinned. Anyone help me out, please?

The animation editor is pretty finicky. You can try setting the left and right tangents of the key frames to linear. This has helped me in the past.