@jmclaus Did you mean:

    if (
        (keyCode === KEY.UP || keyCode === KEY.TAB) &&
        keyCode === KEY.TAB && !event.shiftKey
    )

?