❔ some sort of global keyboard and mouse detection?

hey, i want to write a programm where it is neccessary to detect save and play keyboard and mouse ,,events,, in and outside of my programm, and i dont know what to look up, it would be nice if someone could tell what to look into to achieve my goal?
Was this page helpful?