src/common/event-utils/index.js
function handleKeydown(keyCodes, e, callback) {
    const keyCode = e.charCode || e.keyCode;
    if (keyCodes.indexOf(keyCode) !== -1) {
        callback();
    }
}
function handleKeydown(keyCodes, e, callback) {
    const keyCode = e.charCode || e.keyCode;
    if (keyCodes.indexOf(keyCode) !== -1) {
        callback();
    }
}
function handleKeydown ( keyCodes , e , callback ) { const keyCode = e . charCode || e . keyCode ; if ( keyCodes . indexOf ( keyCode ) !== - 1 ) { callback ( ) ; } }
Generic keydown handler used by more specific cases
@param {Array} keyCodes: List of acceptable keyCodes
@param {KeyboardEvent} e
@param {Function} callback
Generic keydown handler used by more specific cases