Made keybuffer global

This simplifies a lot of code sacrificing the ability to have multiple/
temporary buffers that doesn't pollute the main key buffer. But we
rarely (never) use that feature anyway.