title: how to make keyup() function only on first keyup in the field
body: <p>I have created a keyup() function the code is here</p>
  
  <pre><code>$(document).ready(function() {
      var scntDiv = $('#add_words');
      var wordscount = 1;
      $(document).keyup(function(e) {
  
          var key = (e.keyCode ? e.keyCode : e.which);
          if (key === 32) {
              wordscount++;
              $('.input1').append('&lt;p&gt;stop touching your keyboard&lt;/p&gt;');
              $('&lt;div class="line"&gt;Word ' + wordscount + '&lt;input type="text" class="input' + wordscount + '" value="' + wordscount + '" /&gt;&lt;a class="remScnt"&gt;Remove&lt;/a&gt;&lt;/div&gt;').appendTo(scntDiv);
              i++
              return false;
          }
      });
  });
  
  &lt;div id="add_words"&gt;
      &lt;div class="line"&gt;Word 1&lt;input class="input1" type="text" value="1" /&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>which is working fine but whenever I press spacebar adding new input field. 
  the problem is that I wouldn't able to type long words with space(coming a lot of input field)</p>
  
  <p>eg:- when type "my hello world" shows two input field. Actually I need one extra field. </p>
  
  <p>my question is that is there any option <code>keyup()</code> function working only on first time in the same field </p>
  
  <p>If you know could you help me please </p>