title: How can I use python xlib to generate a single keypress?
body: <p>I want to make a very simple python 3 script that will generate a single keypress (F15). I don't want to use a bunch of libraries to do this as I only need one key to be pressed and don't need support for the whole keyboard. I know I need to use KeyPress and KeyRelease in order to generate a keyboard event. I'm just not sure where exactly to start and the documentation is a little confusing.</p>
  
  <p><a href="http://tronche.com/gui/x/xlib/events/keyboard-pointer/keyboard-pointer.html" rel="noreferrer">http://tronche.com/gui/x/xlib/events/keyboard-pointer/keyboard-pointer.html</a>
  <a href="http://python-xlib.sourceforge.net/?page=documentation" rel="noreferrer">http://python-xlib.sourceforge.net/?page=documentation</a></p>