fix keymap function call