My key number 1 doesn't work, even I try on keyboard viewer, but I can still use that number key like a shortcut or i can use it in lockscreen to type password.
I checked my macos is up to date, the mouse keys, sticky/ slow keys are off, my keyboard layout is U.S., reset "keyboard" in the activity monitor, even reset my mac many times.
First, let’s see if this issue happens in Safe Mode:
Shut down your Mac.
Press and hold the power button on your Mac. As you continue to hold the power button, your Mac turns on and loads startup options. When you see Options, release the power button.
Select your startup disk. It's named Macintosh HD, unless you changed its name.
Press and hold the Shift key, then click the “Continue in Safe Mode” button below your startup disk.
Log in to your Mac. You might be asked to log in again.
If the issue doesn't continue in safe mode:
Leave safe mode by restarting your Mac normally, then try to reproduce the issue.
If the issue doesn't return, it might have been resolved by the other things that safe mode did at startup, such as checking your disk and clearing caches.
My key number 1 doesn't work, even I try on keyboard viewer, but I can still use that number key like a shortcut or i can use it in lockscreen to type password.
I checked my macos is up to date, the mouse keys, sticky/ slow keys are off, my keyboard layout is U.S., reset "keyboard" in the activity monitor, even reset my mac many times.
Typically a straight line of keys, or keys associated on a diagonal, or issues w/ isolated keys like your example—indicates a hardware issue.
The keyboard is a complex of 5 layers of mylar® and associated traces—not repairable. The resolve is replace the keyboard— which would read as a top case replacement