Is there a functionality to check if a user is idle

Is there a functionality to check if a user is idle(No mouser or keyboard activity) on any scheduler’s event for more than 1 minute and reload the scheduler?

I want to cancel all events (onBeforeEventChanged, onBeforeLightbox, onLightbox, onAfterLightbox, onEventSave, onEventChanged, onEventAdded) if any event is idle for more than 1 minute and would like to reload my scheduler.

There is no built in functionality for such a task, but you can attach common onmouseover and onkeypress handler to the document.body to detect is any activity in window occurs.