window: simplified key handler code

Instead of treating every case, use the builtin gtk_search_bar_handle_event function.