autocomplete and kb switch