I'm working with a friend of mine developing a program taking input from external sources and remapping them to keyboard input (say you had a gamepad or other external device and you wanted to use it to "type"). Is there any easy way to do that in JUCE? I noticed there's the KeyListener class which we could use to get the input from the keyboard (from my understanding) but is there a way to do the reverse and send a key press to the currently active program/window? This will eventuall be run on a Mac and potentially a Windows PC. I looked into the basics of how this might be done on OS X and was non-trivial with Cocoa and I'm guessing similarly with Windows.