add key bind to capture the buffer