I have done all those steps above, but my keyboard doesn't show up on the list of bluetooth devices
What can I do to get my iMac to recognize my magic keyboard? It was working, then some time ago my computer stopped recognizing it. I followed the steps that were recommended and I can only use my keyboard when plugged in with lighting cable.
iMac 27″, macOS 12.6