checks if player is typing in the chatbox ( if it can find that grey colored "press enter..." ) . if it results false spamms ESC. I have my own that looks unprofessional if noone else makes it.
I just meant looking for that grey color wouldn't work because some people will have disabled it. There are other ways to do this though, but I'm not sure how useful it would be?