Forse var c = (evt.which) ? evt.which : evt.keyCode;