You can send key events to another application, but that's about all you can do with other application's AppUi. You could also capture keys and not consume them. This is how you could get to know what UI input another application is getting. If this another application is your own application, you can arrange some communication. It depends on what you want to do...