title: Create a new line when user presses "Enter" key (HTML & Javascript)
body: <p>I'm creating a Chrome Extension such that the user can create a todo list.  I want to make it so that once a user types out a task, the user can press the "Enter" key to submit it.  This will cause the task to go down to the next line.  I'm having trouble allowing the user to make the task go onto the next line.</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;input type="text" name="newtask" value="" spellcheck="false" placeholder="New Task" id="newtask"&gt;
  &lt;ul id="tasksUL"&gt;
    &lt;li&gt;test&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p><strong>Javascript:</strong></p>
  
  <pre><code>$(() =&gt; {
     $('#newtask').on('keydown', (e) =&gt; {
       if(e.keyCode == 13){
         ???
       }
     });
   });
  </code></pre>