title: I have just tried to print out pressed keys with the keyboard module
body: <p>I have just tried to print out pressed keys with the keyboard module. It also works, but there are weird keyboard events and I want to get rid this.</p>
  <pre><code>import keyboard
  
  recorded = keyboard.record(until='esc')
  recorded = str(recorded)
  print(recorded)
  </code></pre>
  <p><img src="https://i.stack.imgur.com/uYxd5.png" alt="enter image description here" /></p>