update key-mapping