demos/lib/keymaster.js
function getMods(key) {
    var mods = key.slice(0, key.length - 1);
    for (var mi = 0; mi < mods.length; mi++)
    mods[mi] = _MODIFIERS[mods[mi]];
    return mods;
  }
function getMods(key) {
    var mods = key.slice(0, key.length - 1);
    for (var mi = 0; mi < mods.length; mi++)
    mods[mi] = _MODIFIERS[mods[mi]];
    return mods;
  }
function getMods ( key ) { var mods = key . slice ( 0 , key . length - 1 ) ; for ( var mi = 0 ; mi < mods . length ; mi ++ ) mods [ mi ] = _MODIFIERS [ mods [ mi ] ] ; return mods ; }
abstract mods logic for assign and unassign
abstract mods logic for assign and unassign