Use charCode and keyCode from Android