rewrote tab function

old code doesn't work (for me) when I have more than two input.
in plus, in old code, "!e.shiftKey" doesn't work because point to the local "eventData" variable "e" and not to the "keydown eventData"