title: Change style on hover while a key is held down
body: <p>I've set up a style to turn a single-cell table, for example:</p>
  
  <pre><code>&lt;TABLE ONCLICK='goSomewhere("http://en.wiktionary.org/wiki/yes", "http://en.wiktionary.org/wiki/no")' CLASS="mybutton"&gt;
      &lt;TR&gt;
          &lt;TD&gt;This is a button&lt;/TD&gt;
      &lt;/TR&gt;
  &lt;/TABLE&gt;
  </code></pre>
  
  <p>Into a button via CSS such as:</p>
  
  <pre><code>table.mybutton {
      border : 1px solid;
      border-radius : 8px;
      border-spacing : 2px;
      font-size : 80%;
      display : inline-table;
      cursor : pointer;
  }
  table.mybutton:hover {
      background-color : black;
      color : white;
  }
  </code></pre>
  
  <p>I've managed to get it to visit one of two URLs depending on whether the Shift key is held down via this Javascript:</p>
  
  <pre><code>var shift = false;
  
  function shiftHandler(event) {
      shift = event.shiftKey;
  };
  
  window.addEventListener("keydown", shiftHandler, false);
  window.addEventListener("keypress", shiftHandler, false);
  window.addEventListener("keyup", shiftHandler, false);
  
  function goSomewhere(url1, url2) {
      if (shift) {
          window.location.href = url2;
      } else {
          window.location.href = url1;
      }
  }
  
  function goSomewhereElse(url) {
      window.location.href = url;
  }
  </code></pre>
  
  <p>The last piece is that I'd like the background color of the button while hovering to change depending on whether the Shift key is held as well. Can this be done? Can it be done without extra libraries?</p>
  
  <p><a href="http://jsfiddle.net/s_jsfiddle/sd6tqd3t/8/" rel="noreferrer">Example Fiddle</a></p>