SOLUTION! Apple wired keyboard not connecting using USB-A port on mac mini (m1 or m2) in Ventura
This is a reply and solution for this question on this forum from 2022 which is still a problem as it just happened to me with a brand new m2 Pro mac mini in April 2023:
Problem: Apple USB-A wired keyboard is not recognized after plugging into either USB-A ports on mac mini. Ports are working fine with other peripherals (wired mouse, etc) plugged into them.
Apple support tech and I looked at system report (apple > about this mac > more info > general (scroll to bottom of page) > system report > hardware > USB) and the plugged in Apple keyboard was not showing in any USB Bus when everything else plugged in to mac mini (studio display, magic trackpad, etc) was clearly there.
I then went and purchased a new Magic Keyboard and plugged the lightning (from keyboard) to USB-A into the mac mini to pair, which it immediately did. Then, while it was still plugged in, I checked system report under hardware > USB and after closing the window and going back in, there it was as 'Magic Keyboard with Numeric Keypad'. Ok, great. I then unplugged it and re-plugged in my old wired Apple keyboard to see if it would now show up and...THERE IT WAS! I figured out that what happened was that the NEW keyboard activated the needed FIRMWARE UPDATE that the old keyboard couldn't trigger (activate). Unplugged old keyboard and replugged several times and still works fine! The firmware update (from the new keyboard) is what did the trick that the old Apple keyboard just couldn't do it on its own. Voila, problem solved!
(funny how purchasing a new Apple product was the solution, haha. Kept it anyway as it's a very beautiful keyboard)
Hope this helps!