How to capture global key presses in java
<p>I made a simple Media player in Java but I <strong>want to record global key presses like Ctrl + P</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="nofollow">JNativeHook</a> but I want to implement my own method only for Windows.
Please Suggest how to do it and where to begin ?</p>
