def METHOD_NAME(self, key_event: KeyEvent) -> None:
    if key_event.type is EventType.RELEASE:
        return
    if key_event.matches('esc'):
        self.quit_loop(0)
        return
    if key_event.key in ('w', 'n', 't', 's') and key_event.mods_without_locks == CTRL:
        self.do_window_resize(is_decrease=key_event.key in 'ns', is_horizontal=key_event.key in 'wn', multiplier=2)