Change window_key_event handling, window manages all key events from now.