If accidents are an issue, Mac OS X has basic text replacement functionality located in System Preferences > Keyboard > Text
If that isn’t enough, Keyboard Maestro, TextExpander and TypeIt4Me are very capable of fixing repeated typing accidents.
Finally, if you want to insert tags without any errors, I’d recommend the script that I and @complexpoint worked on, which is here. I use this every day—I love it.