Static Mouse movement?

How do you create an action to happen when the mouse is static for 1min. I need an animation to loop in an application kinda like “Pop Up Video” and when the mouse moves or the touch screen is “Touched” it will move to the second frame.

Rob