How to detect whether keyboard/mouse or controller was interacted with last

yeha. great answer. I also ended up with the same solution. Be sure to also check the “Execute while paused” option in the “Any Key” event if you want to be able to recover that information while your game’s Pause Menu is opened