Keyboard input not working in background

I’m trying to implement the new input system package in my Unity 3d project to make my input work even when the application is not focused. I created my own input actions with the respective events connected to the pressing of some keyboard keys (bindings) and I also activated all the settings relative to my application’s background behaviour. My problem is that by setting the bindings as keycodes they are not recognized in the background and the input is redirected to Windows. If instead the bindings are buttons on a joystick then the input can reach my game even if is it running in background. Does anyone know how to make keyboard input work in background?

Thanks for reaching out @fabio19551. Would this reply answer your question? Keyboard Input does not work when application in background