I have written a JS function that only allow numbers to be entered. A copy of that function is below:
function NumbersOnly(e) { var evt = e || window.eve
You can check if shift key is pressed using :
if(evt.shiftKey) { ... //returns true if shift key is pressed