How do I send keystrokes to a specific app?

Solution 1:

You can use xdotool that provide a --windows parameter to select the destination window and a search command to look for a window by title, name or other.