Can I Get input while running in background?

I’m sorry I can not speak English well.


Play program.exe
program.exe is background running

(Run in background is True
Mouse is out of focus)

if i doing something on website

i’m input key “Ctrl”program.exe is on Pop

(background ->pop program window)

I do not know if it’s explained well, but this is what I want
can i this?

Check out this GitHub project: GitHub - Elringus/UnityRawInput: Windows Raw Input wrapper for Unity game engine

It allows getting input events event when the application is not in focus.

is there also a project for the mouse? in the description is told that it only works for keyboard