More specifically, when I tap the caps lock key, I would like it to type the Escape key everywhere except in a Chrome tab whose title matches a string, where I would like it to type Ctrl+c instead.
I found that there is something called tokens and there is one named %ChromeTab%, but I don't think these are expanded in scripts in the control flow actions.