def key_event(self, state, key): if EventHandler.key_event(self, state, key): return True action.exit_building()(state) return True