Using updateListener to trigger autocompletes

I am working with a custom autocomplete function and want to trigger autocomplete with every change in the editor. How can I do this?