This isn't a complete answer but should point you on your way.
Bluetooth has a HID profile (HID=Human Interface Device) for keyboard, mouse, game controller, etc. You probably need to investigate that.
Note to self: don't feed the trolls
If I've asked you a question, please answer it. I'm unlikely to be able to help without that information.