Key code 188 should be mapped to comma (,) not space.
Check for null item value in addition to undefined within select function.
Use angular.isUndefined() in place of === undefined for consistency.
After removing tagging label from new tag, trim the trailing space.