Initially the old Mac keyboard did work. But all of a sudden it stopped working. I think there was an update to the new Mac Mini M2. I went online to see an answer that, yes, there was an update and Apple is working on the keyboard issue. My husband ordered an Omoton wireless keyboard for about $30 and it should work fine with Bluetooth. Also, a mouse is on its way.
I had my two Mac Minis connected with a HDMI USB KVM Switch. The old one is 2011. It was working, but using Migration Assistant wasn't. The reason, is that there is a switch to access only one computer at a time. We are in a rural area of Florida and the wifi is poor.
I have a Macbook, and have had about three other Macs, but they are dust now.
Thank you for reaching out!