How to shorten an Animation

I started an animation and added a key at the :15 second mark. When I moved it to :5 seconds mark, the animation continues to :15. How can I shorten to the last keyframe?

Thanks,

I’m not infront of my work computer to show you code, but you change the animation time to that 15 second mark. I think you may be able to do the same with the key frame.

or just make a new animation clip, and within that clip is just the “pose” you want, then just switch the animation to that new clip whenever you want.

Thank you.