Entered text added as tag on pressing Enter and Tab