How to change bluetooth device type on Mac (e.g. force recognition of bluetooth device as a keyboard)
Go into System Preferences > Keyboard and then click on the Set Up Bluetooth keyboard button and see if you are able to properly configure your bluetooth keyboard that way.