title: I cant get keyboard.wait to continue with the code after pressing a key
body: <p>I'm making a script in python that shouldn't continue with the script until after I've pressed a certain key (in this case that key is Y) but every time I get to that part of the script and press the key it just ends the program prematurely. I don't quite know if I'm missing something or just being mildly retarded.</p>
  
  <pre><code>import random
  import time
  import keyboard
  
  loop = True
  while loop == True:
  
  north = random.randint(0,90)
  south = random.randint(0,90)
  west = random.randint(0,180)
  east = random.randint(0,180)
  nors = random.randint(0, 1)
  eorw = random.randint(0, 1)
  
  Snorth = str(north)
  Ssouth = str(south)
  Swest = str(west)
  Seast = str(east)
  
  if nors == 1:
      print("north: " , Snorth)
      time.sleep(.5)
  
  else:
      print("south: " , Ssouth)
      time.sleep(.5)
  
  if eorw == 1:
      print("west: " , Swest)
      print("Again?")
      if keyboard.wait('"y"'):
          print("test")
          loop = True
          time.wait(5)
  
      else:
          loop = False
  
  else:
      print("east: " , Seast)
      print("Again?")
      if keyboard.wait("y"):
          print("test")
          loop = True
          time.wait(5)
  
      else:
          loop = False
  </code></pre>