Is there a way to send keystrokes to 1 single process/program?
By doing so you should be able to send keystrokes only to this single process/program(while it is minimized) so the keystrokes aren't recognized by the other programs.
ps. this would be used for bots in certain games