You have overlapping triggers for your scripts, as such only the first trigger will first..example the caps warning looks for any text, so no text trigger placed after that will ever fire.

The different modules should be in separate script files to prevent this.