title: Function to check if keyispressed
body: <p>I need to see if a modifier key is pressed(shift,ctrl,alt) for my mouse event(basically ctrl+click)</p>
  
  <p>I was wondering if there is a simple function to check if a key is pressed without implementing a keylistner or action events so as to not have the hassle of keeping track of where the focus is or where the variables are.</p>