def METHOD_NAME(self, key, modifiers):
    """Called when the user releases a key."""
    if key == arcade.key.LEFT or key == arcade.key.A:
        self.player_sprite.change_x = 0
    elif key == arcade.key.RIGHT or key == arcade.key.D:
        self.player_sprite.change_x = 0