def METHOD_NAME(self, key, modifiers):
    """
    Called when the user presses a mouse button.
    """
    if key == arcade.key.LEFT or key == arcade.key.RIGHT:
        self.player_sprite.change_x = 0