If the Caps Lock key works in reverse order, press the Ctrl+Shift+Caps Lock keys. This is a shortcut method to reset the Caps Lock key. If this works, you need not try the fixes described below.
How often has it happened that you have inadvertently hit the Caps Lock key and continued to type? While the Caps Lock key is a useful tool, when you want to write everything in capitals ...