deep copy global keymap to buffers. cascading keymap was not working properly