Detecting when the @ key is pressed
<p>I am trying to detect when a user pressed the @ key in a text box. I can use JQuery to handle the keyup event like so...</p>

<pre><code>$('#target').keyup(function(event) {

});
</code></pre>

<p>But what do I do from here to test for the @ character? I know I can use <code>event.which</code> to get a key code. But in this instance I would need to also check for shift - technically this is not a problem, but I know the @ key can move around with different language settings and I am worried that this may prove to be inconsistent. Maybe I am worried wrongly, and I can rely on it always being <code>SHIFT + 192</code>?</p>

<p>Ideally I would like something like the following to allow for easier configuration later on...</p>

<pre><code>event.something == "@";
</code></pre>

<p>Thanks for any help</p>
