python left and right arrow key event not working
<p>I am new to Python and trying to create a turtle shape and once the user clicks the left or right arrow keys on keyboard the shape should move in that direction, however nothing is happening.</p>

<p>I am trying to move the player using the left and right arrow keys, buts its not working please help and advice.</p>

<pre><code> #Create the player turtle
    player = turtle.Turtle()
    player.color("blue")
    player.shape("triangle")
    player.penup()
    player.speed(0)
    player.setposition(0, -235)
    player.setheading(90)

    playerspeed = 15


    #Move the player Left and Right
    def move_left():
        x = player.xcor()
        x -= playerspeed
        if x &lt; -200:
            x = - 200
        player.setx(x)

    def move_right():
        x = player.xcor()
        x +- playerspeed
        if x &lt; -200:
            x = - 280
        player.setx(x)

#Create Keyboard Bindings
    turtle.listen()
    turtle.onkey(move_left,"Left")
    turtle.onkey(move_right, "Right")
</code></pre>