Adaptive Keyframe Sampling for Long Video Understanding