Send keystroke to specified unfocused app every x seconds

I figured out how to automate a keystroke globally every x seconds when focused on a certain app, but is there a way to send a keystroke to a specific app when it is not in focus? Basically I need to avoid being timed out of a certain app, but this app also requires me to spend some time googling and I only have a 10 minute window to stay inactive before I'm kicked. TIA for any help/suggestions.

you can use the predefined action "send shortcut to specific app"

Of course I can. That would make total sense. No telling how many times I went right passed that. Good grief. Thank you.