Fix logic error in keymap find proc.