proper close keymaps