I haven't written any extensions but am wondering if this is possible. I did some looking up, it looks like its possible to open an extension's popup with browserAction.openPopup()
(MDN link), and have it triggered with a command. You can also open an extension's sidebar if it has one.
However, I haven't found anything for navigating the extension UI itself. Like, if I do have a popup window like shown below, how can I add keyboard navigation for it? I'd want the keyboard focused on the popup, to move around and press the buttons with just the keyboard, as well as exit the pop with the keyboard.