title: How do I get $(this) two levels deep?
body: <p>alright so I'm trying to set up a keydown dispatcher that will do different things based on which key was pressed.</p>
  
  <p>It's added to onkeyup on my input field</p>
  
  <pre><code>$(function() {
    $("#myInput").keyup(suggestion_dispatcher);
  });
  </code></pre>
  
  <p>and then this is the suggestion dispatcher itself</p>
  
  <pre><code>function suggestion_dispatcher() {
      alert($(this).val());
      var code = event.which;
  
      if(code == 13) {
          // select
      } else if (code == 38) {
          // up
      } else if (code == 40) {
          // down
      } else {
          $.proxy(get_suggestion(), $(this));
      }
  }
  </code></pre>
  
  <p>Even using the jQuery proxy, inside my get_suggestion() function if I look at <code>this</code> or <code>$(this)</code> I see that it's giving me the window object instead of the input box that's being typed into.  What am I missing?</p>