Autocompleter: refactoring; focus control fixed; key handling improved; option for value restriction