Checking if events have been received some time this frame (key presses, etc)?

So I have a player controller that sends inputs via an interface to a pawn. Inside that pawn, in a different part of the blueprint (or C++ I guess), I want to be able to query whether that has occurred, i.e. ‘If ___ event has been received at some point this frame, do _______’.

I basically want to have a controlled way of querying input from both player and AI controllers when needed for the current frame.

Not sure how to go about this.


You could do that by setting boolean at key event and check its status on tick event which is triggered for each frame. Problem is i dont know if key status is checked before tick or after.