that i have just thought.
so if you leave caps lock on and then carry on typing you sOMTIMES GET TEXT THAT LOOKS LIKE THIS.
especially with a lowercase first letter when you pressed shift. so the computer will often correct it for you by switching case,
what i've invented is that when it shifts case like that for you then it will also toggle caps lock. if it's going to assume you were wrong about the caes you were using then it should also assume your caps lock should be off.