buffer management kbd