title: Detect any user action event
body: <p>How can a function be executed whenever this is any user activity such as moving or scrolling the mouse or pressing a key?  I am thinking something similar to the following, however, likely other events will be required.  Ideally, jQuery would not be required.</p>
  
  <pre><code>document.body.addEventListener('mouseover', resetTimer);
  window.addEventListener('scroll', resetTimer);
  document.addEventListener('keydown', resetTimer);
  </code></pre>
  
  <p>The purpose is for implementing a JavaScript based page rotator that will start after X seconds of user inactivity.  </p>