I'm wondering whether it's possible to call a function when a key combination is pressed on the keyboard:

something like

Code:
function doStuff(keys){
   if(keys == 'Ctrl + a'){
     doThis();
  
  } else if(keys = 'Ctrl + U'){
    doThat();
  }
}
Anyone know if/how this could be done?