title: Why isn't my turtle keybinding responding?
body: <p>I am in the process of modulating my code for a game that I wrote. When I modulated the player class, I add all the additional parameters/arguments so it can be separated. I kept the keybinding within the the main game module.</p>
  <p>The keybinding code look like this</p>
  <pre><code>
  turtle.listen()
  a=turtle.onkey(player.go_left(walls), &quot;Left&quot;)
  b=turtle.onkey(player.go_right(walls), &quot;Right&quot;)
  c=turtle.onkey(player.go_up(walls), &quot;Up&quot;)
  d=turtle.onkey(player.go_down(walls), &quot;Down&quot;)
  e=turtle.onkey(player.headright(missile,lives), &quot;d&quot;)
  f=turtle.onkey(player.headleft(missile,lives), &quot;a&quot;)
  g=turtle.onkey(player.headdown(missile,lives),&quot;s&quot;)
  h=turtle.onkey(player.headup(missile,lives),&quot;w&quot;)
  i=turtle.onkey(player.headright(missile,lives),&quot;D&quot;)
  j=turtle.onkey(player.headleft(missile,lives), &quot;A&quot;)
  k=turtle.onkey(player.headdown(missile,lives),&quot;S&quot;)
  l=turtle.onkey(player.headup(missile,lives),&quot;W&quot;)
  o=turtle.onkey(player.drink(info),&quot;space&quot;)
  m=turtle.onkey(player.fireball(missile2,info,lives),&quot;z&quot;)
  n=turtle.onkey(player.fireball(missile2,info,lives),&quot;Z&quot;)
  
  </code></pre>
  <p>The game is running without error but the keys aren't responding to the action.</p>
  <p>You can find the code in</p>
  <p><a href="https://github.com/Ninedeadeyes/7-Dungeons-Deep/tree/master" rel="nofollow noreferrer">https://github.com/Ninedeadeyes/7-Dungeons-Deep/tree/master</a></p>
  <p>The keybinding code is in game(mod version)</p>
  <p>All functions are within 'player.py'</p>
  <p>Any help would be great.</p>