update key mapping