Disable screensaver widget on Anykey press

Hello,

The idea is to create a screensaver (widget) that will play a video when the player is not moving for X time.
My issue is to disable the widget on Anykey press just like when you’d move the mouse on your computer.
I got it to work with other keys, but when I use the Anykey it immediately fires the event and opens the level,

What condition in the branch node can I put so that the Anykey fires only when the widget is playing the video?
Any help/ suggestion would be greatly appreciated.

Thank you!

Not sure why you are creating widgets on tick…very bad idea you’re going to end up with hundreds of the widget in the view port. Find a better way to determine if the screen saver should play. Then create widget if the player is inactive for “X” seconds. Then on any key pressed, check “is valid” on the widget object, if true it will execute whatever is after, if false, it will do nothing. This way it only works if the widget exists.