Added input event handler

This fixes issues with autocorrect/complete on Android tablet.  BTW why are all these whitespace edits showing up whenever I commit?