add keyboard handling for video player