issue #1129 - use keyCode in keydown event instead of charCode