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

Thanks. That’s roughly what I was thinking - but I can’t see how to track input events from the Game Instance (or the player controller). Am I missing something?