def set_key_state(self, key, state):
key.state = state<EOL>self.renderer.draw_key(self.surface, key)<EOL>
Sets the key state and redraws it.

        :param key: Key to update state for.
        :param state: New key state.