Changed key dispatching mechanism to Instrumentation so that it could work also in webviews.