Clean up keymaps for different platforms