title: X11 Key held down leads to key pressed and released
body: <p>How can I stop the KeyRelease event being spammed when I hold down a key on the keyboard?</p>
  
  <p>I've searched the internet and found people suggesting putting a timer in the loop but I want a more efficient way.</p>
  
  <p>Isn't there something in X11 that can turn the autorepeat off?</p>