Fixes charCode for keyUp