@marcos-ibarra
I'm not into AU3 that much (while knowing AHK better), what about triggering OBS's Control(s) directly, instead of Send(ing) a key in a less reliable way?
https://www.autoitscript.com/autoit3/docs/functions/ControlCommand.htm
That way the window wouldn't even have to be active, only existing!