title: How to force "enter key" to act as "tab key" using javascript?
body: <p>I'm working on a site that is full of forms to be filled and I it's required that when escape button is pressed focus move to the next input control, just as pressing "tab" do.
  I found code to move focus when keypressed is 13 but this need to take the ID of element to focus on</p>
  
  <pre><code>&lt;input id="Text1" type="text" onkeydown="return noNumbers(event)" /&gt;
  &lt;input id="Text2" type="text" /&gt;
  
  &lt;script type="text/javascript"&gt;
  
      function noNumbers(e) {
  
          keynum = e.which;
  
          if (keynum == 13)
              document.getElementById("Text2").focus();
  
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>I need a generalized function that when key pressed code is 13 "that is enter" fire the default event of pressing 9 "that is tab", of course in Javascript</p>