window: fixed key handler code

When in GcalWindow::new-event-mode, the key handler cannot redirect input to search bar. This commit fixes it.