bound keyframe time to prev and next