title: How to capture global key presses in java
body: <p>I made a simple Media player in Java but I <strong>want to record global key presses like <kbd>Ctrl</kbd> + <kbd>P</kbd></strong> to pause/resume the current music being played <strong>without the JFrame having focus</strong> but it seems that its not possible due to JVM security issues.</p>
  
  <p>I came across <a href="http://code.google.com/p/jnativehook/" rel="noreferrer">JNativeHook</a> but I want to implement my own method only for Windows.
  Please Suggest how to do it and where to begin ?</p>