Since a few days, I am not being able to press T and any other key on my Wired Apple Keyboard. Nothing happens when I press Shift and T. Keyboard shortcuts like Command ⌘ShiftT don't work. But Command ⌘T works.
To get a capital T, I need to turn on Caps Lock or copy and paste it from somewhere.
I enabled Verbose Boot by setting the kernel flags a long while ago. Maybe at the same time when the key stopped working right1, after 20 lines of text the verbose boot kept typing in the $ character automatically until I pressed any key on the keyboard.
I can fix this by attaching a non-Apple Keyboard, setting its layout and unplugging it, after which the Apple Keyboard starts working perfectly (which means there is no hardware problem). But when I reboot the key stops working again.
Also trying to press ShiftT in verbose boot does nothing, while other keys show up fine. ShiftT doesn't even work in Safari in Recovery mode. I also can't reset the NVRAM by pressing Command ⌘Option ⌥PR, it just takes me to Recovery mode.
1 I don't remember doing anything except setting up oh-my-zsh around this time.