The code looks fine to me, c.f.:
$ node > undefined || undefined || 4 4 > undefined || 9 || 4 9
> undefined || false false > false || undefined undefined
> e = {keyCode:9} > e.which || e.charCode || e.keyCode 9