arrow key behavior for buffers