More careful checking of keymaps.