If kbd_buffer is becoming full, stop reading until it drains (Bug#6571).