Handle mouse/touch events before the UI widget consumes them

I’m trying to make idle timeout for my ui widgets which will show the main widget when nobody touches the screen for a period of time.
I tried to put mouse/touch event handler on the level blueprint that will reset my counter but when the user clicks a button or another widget the events don’t fire. Also tried make action binding in project settings but with no avail.

Can i capture the raw mouse/touch messages (I’m newbie in unreal)?
C++ is an option - i can code :slight_smile: