Implemented autocomplete keyboard control.