Use e.which instead of e.keyCode