When 'keypress' event is missing, use 'input' event. This is tested on Samsung Galaxy Note III WebView.
Add support to Android KitKat WebView. 'keypress' event is deprecated, replace with 'input' event if 'keypress' event is not supported.
fix caret positions
Merged with the latest on the main project.
Bit of cleanup for #245