[Regression] Fixed handling key press events in webview.

Regression from 7c9b30c4432329afadaa63022c59fe14bd3b6c75