I am trying to create a python 3 program with tkinter that will listen to my keyboard input even while the window is not "focused," as in I would have a separate window open, say a browser and press the tab key, which would then put the window into focus. Is there any way that I could go about doing this?
Tkinter has no support for this. Tkinter can only respond to events when it has focus.
Python 3 Tkinter: How do you listen to user inputs when the window is not in focus?