better action on the input for triggering menu

better action on the input for triggering menu