I attempted to do what you're trying a few months back with no success. FFXI needs to be in the foreground to enter the commands, for some reason the text will be input to all the windows. I tried using the lock to foreground option in innerspace but since the playonline viewer gets messed with regularly it caused crashes. There's a lock to foreground feature on keyclone, but it doesn't work correctly. In other words you have to switch windows manually which means there's no real use for keyclone.