I did not find a way to do this via the command line, but the workaround that I use may be useful. At first it only works on Windows, although I suspect that similar things can be done on Mac and Linux as well.
I use Windows Scripting Host to send the key, as if they were programmed from the application. Keys.wsf file
<package> <job id="js"> <script language="JScript"> var shl = WScript.CreateObject("WScript.Shell"); var WINTITLE= "Chrome" shl.AppActivate(WINTITLE); WScript.sleep(500); shl.SendKeys ("^+i"); </script> </job> </package>
If you know the Crome window title can help replace WINTITLE
source share