Autocomplete with tags?

Autocomplete with tags?

Hello,

I have an input text where user can enter one or tag (tags are separated by space).

I would like to use Auto complete widget but it works only for the first tag. Is there a way to tweak the widget to make it working?