Fix keymap reading.