Oh, that's interesting!
To be honest I never tested gamepad input while the game was not focused. I also thought it would ignore the inputs until focused again.
I'll write it down as a bug and see if I can prevent that from happening! Thank you for reporting!