def METHOD_NAME(self, symbol: int, modifiers: int):
    if symbol == arcade.key.LEFT:
        self.x_direction += PLAYER_SPEED
    elif symbol == arcade.key.RIGHT:
        self.x_direction -= PLAYER_SPEED
    elif symbol == arcade.key.DOWN:
        self.y_direction += PLAYER_SPEED
    elif symbol == arcade.key.UP:
        self.y_direction -= PLAYER_SPEED