trigger a key event to a webwiew

It is possible that when you press a button a key event is launched and a page in a webview collect that key event?