using MacBook Pro as keyboad I was wanting to know if i could use my laptop as a keyboard, i am wanting to plug a device into my laptop's USB port and send keystrokes from the keyboard out of the USB port, the connected device would be things such as: raspberry pi, arduino, servers. The program will be similar to a keylogger,  I do have programing knowledge, please give me advice on how to make this project possible, or tell me if a solution has already been found. Thanks
There is Type2Phone, but it only works with Bluetooth and not USB.

The website says that it supports iPhone, iPad, and AppleTV, but it might also work with other devices according to the comments in this blog post.