Add 2 functios to lookup key in a keymap