title: Insert a CR/LF into a textarea
body: <p>I've got the following code:</p>
  
  <pre><code>document.onkeydown=function(e) {
  if (e.which == 13 &amp;&amp; isCtrl) {
     log('Ctrl CR');
  } else if (e.which == 17) {
     isCtrl = true;
  };
  </code></pre>
  
  <p>I need to insert a Carriage Return/Line feed where the cursor is located in the input textarea.
  Now that I think about it, I should probably be using a textarea selector instead of document.onkeydown, but $('textarea').onkeydown doesn't work.</p>