Key press detection without focus
<p>Fast question:</p>

<p>On a website, there is any way to detect when a keyboard key is pressed while the browser is minimized? or when you have the focus on another window?</p>

<p>For example, you open my website on Chrome, and you switch to Spotify for example, I need to detect if the user press a particular key that he previously binded.</p>

<p>I can imagine that's impossible with javascript because you have no focus on the browser, but, there is any way for it? Making a chrome extension maybe? with Java? Silverlight?</p>

<p>I just need to detect the user pressed the key, nothing else.</p>

<p>Thanks!</p>

<p>EDIT:</p>

<p>My users have already installed a C# app on their computers, can I (maybe) detect the key press in the App and call the browser (which is already opened) in any way?</p>