Keyboard will not pair
Cannot get the magic keyboard to pair with Mac. Instead of showing Magic keyboard paired it shows MyName keyboard in Bluetooth menu. That however would not be a problem if it worked, but it does not. Tried what I can find on web but no avail. Now the Magic Mouse 2 is not connecting as that but as MyName Mouse, but at least it works.
How can I get both to repair with Mac they came with.
iMac with Retina 5K display, macOS High Sierra (10.13.4)