How to add keyword field in custom form programmatically?

This link can help you in transforming text into tag-style boxes :-http://jsbin.com/hehurot/5/edit?html,js,output

Then you can store them individually as per your use case