title: Why does interaction with keyboard script crash Python entirely?
body: <p>Pressing the 'm' key crashes Idle.</p>
  
  <p>I tried replacing the fatal script using modules like pygame, psutil and getch.
  I did some digging through the Internet, but I found nothing.</p>
  
  <pre><code>import tkinter as tk
  import keyboard
  
  root=tk.Tk()
  start = tk.Message(root, text = "Spróbuj mnie zaMknąć! Jeśli uMiesz...")
  start.config(bg = 'black', fg = "#00ff00", font = ('times',24,'bold'))
  start.pack()
  
  def on_closing():
      root.overrideredirect(True)
      pass
  root.protocol("WM_DELETE_WINDOW", on_closing)
  
  m = 0
  try:
      if keyboard.is_pressed('m'):
          print(m)
      else:
          pass
  except:
     print('Nope.')
  </code></pre>
  
  <p>I expect the program to print 0, but instead, I get message from Windows that Python has stopped responding and will be closed.</p>