def METHOD_NAME(self, key, modifiers):
    """
    Called when the user releases a key.
    """
    if key == arcade.key.UP or key == arcade.key.DOWN:
        self.player.change_y = 0
    elif key == arcade.key.LEFT or key == arcade.key.RIGHT:
        self.player.change_x = 0