How do I create a tagging system?

My method was more basic, just an input and it searches for existing tags. What you want is more of a Twitter style where it adds hashtags. A quick forum search gave me this:

Seems like more along the lines of what you want