A keyboard that seems locked usually has a feature switched on, not a hardware fault. Windows has accessibility features that ignore keys, plus lock keys ...
These built-in features lock, encrypt, and protect your PC from threats most people overlook.
Windows 11 Build 26340.10013 adds Remote Lock, advanced FIDO2 key management, touch gestures for Magnifier, and several security improvements.