Question: how to change name of magic keyboard?
Answer: Choose System Preferences from the Apple () menu, then click Bluetooth.
Control-click the accessory, then click Rename in the shortcut menu. ... 
Enter a new name for the accessory, then click the Rename button.