Because we are still supporting IE8 it would be better to use jquery event.which.