how to reset the keydown function using jquery?
<p>how to reset the keydown function using jquery?</p>

<p>For example, I two ul list of data and each have a document.keydown method to controll the scrolling either left or right. </p>

<pre><code>            $(document.keydown(function(e1)
            {
                // ul list 1 - insert data

               if(e.which == leftArrowKey1)
               {
                       // scroll left

               }else if(e.which == rightArrowKey1 || e.which == spacebarKey1)

                      // scroll right                                               
               }
            });
            $(document.keydown(function(e2)
            {
                  // ul list 2 - insert data

               if(e2.which == leftArrowKey2)
               {
                  // scroll left

               }else if(e2.which == rightArrowKey2 || e2.which == spacebarKey2)

                  // scroll right                     
               }
            });
</code></pre>

<h1>THe Problem</h1>

<p>The problem is after I scroll either left or right of the first list, I can scroll the other list even after I insert data into it. For example, I insert data into list A, and can successfully scroll either left or right. Now I insert data into list B, I can not scroll either left or right of list B and it continues to scroll list A.</p>
