You might have hit Fn-Tab by mistake.
Just do Fn-Tab again to turn CapsLock off.
Lost CapsLock operation might be due to Advanced Key Settings under Text Services and Input Languages.
The "To turn off CAPS LOCK" setting can be "Press the CAPS LOCK key" or "Press the SHIFT key".
Game is different if you aren't using Windows, obviously.