How to start and end an animation assigned keyframes
Use the "preview range". You can call it via P:



It will set a temporary play range, which you can toggle with this little clock icon near the start/end frames: