add space key to finish a tag