make keymap option functional