fix keymap function mapping