If your keyboard keys stop working, it doesn't necessarily mean they're broken or need replacement. From checking keyboard ...
Repeat delay: Controls the time delay before a keystroke repeats when held down. Repeat rate: Determines the speed of repeated keystrokes. Press the Windows key, type Device Manager, and hit Enter.
If the Left Alt key and Windows key are swapped on your Windows 11/10 system, use the solutions provided below to fix this problem. Before you proceed, restart your computer and see if it helps.