The key code for the <TAB> is 9, you are catching that.
Excluding it form you're where should fix it.
To awnser you're question better.
The numbers go from keycode 48 to 57.
The alpabeth goes from 56 to 90
So to just include the numbers the if should surround just the alphabet, not all keys.
And if you just wan't letters, include the alpabet
if((e.which >= 48 && e.which <= 57)) {
e.preventDefault();
return false;
}
if((e.which >= 65 && e.which <= 90)) {
e.preventDefault();
return false;
}