Only alphanumerics and some other keys work on magic keyboard
Likely the keyboard is physically damaged by my child or water damaged. I just tried it with my iPad and same symptoms.
Sounds like a good opportunity to do a keyboard teardown