How can I block the keyup() event for a second in jQuery?
<p>I'm doing a form validation in jQuery that alerts something when a forbidden character like #$@% is input by user. The problem is, when a user enters those characters, he uses the SHIFT key, so there are two keyup's.</p>

<p>How can I prevent the second one from happening?</p>

<pre><code>if (!regex.test(lastCharacter)
     alert('forbidden character');
</code></pre>

<p>Thanks a lot</p>
