I'm using this code for the left arrow (and a similiar code for right arrow), to go to the next page when pressed. The code works fine, without problems. Except I have a comment section which uses a text area. When typing in the textarea I'd like to turn this javascript off so the user can navigate left and right through the text area. Is their anyway to do this? I was thinking if focus on textarea make the key event do nothing. Would anything like that be possible?

Code:
<script type="text/javascript">
			$(document).keydown(function(e){
				if (e.keyCode == 39) { 
				   //alert( "left pressed" );
				   window.location.assign("http://marveldcforum.com/newx.php?x=2");
				   return false;
				}
			});
</script>
Thanks in advance