title: How to find out the key pressed on keyup or keypress event when dollar key is pressed
body: <p>The below method returns any key from A-Z and 0-9 and when I pressed shift key + 4 its returns the same code 52.</p>
  
  <pre><code>function keyUpEvent(e)//onkeyup event
  {
      var chr = String.fromCharCode(e.keyCode);//converts the keycode into a character
      alert(chr);//alerts the character
  }
  </code></pre>
  
  <p>But I need to show the <b>$ or %</b> when the respective key with combination of shift key is pressed.</p>