pass input through transparent game areas but still detect the inputs have been done?

Godot Version

4.5.1

Question

I am trying to create a game with a function similar to the popular bongo cat idle game where it counts inputs of keyboard or mouse in all areas regardless if it is ‘on the cat’ or on another app example: Notepad.

the goal is to make an idle/productivity virtual pet that uses keystrokes/clicks while you work/write/play other games/etc for progress. So, I want to be able to type something in NotePad and have the game count each keypress.

Is this able to be done? I did try to search this but perhaps I did not use the correct terms.