keyboard input (num pad) when unity does not have focus

How can I catch the num pad input?

I’m creating an overlay for a game. So i Created a transparent/clickthrough window. Everything works fine. the only problem is that Unity does not respond to keyboard inputs anymore. I have read about Hooking the keyboard. But I dont understand that (yet).

Does anybody happen to have a script that I can plug in an object to catch the numpad input when Unity is out of focus so i can trigger other parts of the overlay?

I know its just a script request. But I dont understand that kind of coding yet and i really want to continue with my project. I’m kinda stuck now.

Thank you.

Hello. heve you figured that out?