How do you manage a complex UI where hitting 1 could mean execute skill 1 if you're in combat or it could also mean select party 1 if you're in a party menu? I have a really complex UI game and I also need to get the focused window so that ESC closes out the most recently opened window, so I assume I'll have to add a hasFocus bool to my CloseWindow script that is checking for ESC and manage a List<> of all the windows that are open....
If there's an easier way I'd love to know.