tweak glitch in event.keyCode/charCode

Thanks, Michael!