update key-mapping.