Mail-

Could they not write an if/then to anticipate repetitive keystrokes such as that?

Yes, they could.