(kbd_buffer_get_event): Handle the case that the