menuconfig: Fix searching for nonexistent objects
menuconfig: Fix searching for nonexistent objects

This commit fixes an issue when user searches for a nonexistent object
(e.g. adsdsaasda) and presses enter.

Having all the key checks in one continuous if statement makes sure that
the very last 'else' statement does not get executed when enter is
pressed.

Signed-off-by: Tomasz Gorochowik <265c7c25eca9aa9127910457b0aea7e793d329f1@antmicro.com>

zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,ldts/zephyr,finikorg/zephyr,finikorg/zephyr,punitvara/zephyr,nashif/zephyr,explora26/zephyr,Vudentz/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,ldts/zephyr,ldts/zephyr,punitvara/zephyr,explora26/zephyr,punitvara/zephyr,finikorg/zephyr,mbolivar/zephyr,ldts/zephyr,mbolivar/zephyr,kraj/zephyr,kraj/zephyr,galak/zephyr,explora26/zephyr,mbolivar/zephyr,galak/zephyr,Vudentz/zephyr,galak/zephyr,kraj/zephyr,zephyriot/zephyr,zephyriot/zephyr,Vudentz/zephyr,finikorg/zephyr,nashif/zephyr,explora26/zephyr,mbolivar/zephyr,nashif/zephyr,Vudentz/zephyr,galak/zephyr,zephyriot/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,zephyriot/zephyr,ldts/zephyr,punitvara/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,mbolivar/zephyr,explora26/zephyr