Map over all defined keymaps with rewrite function.