jQuery when NOT selecting a form
<p>I try to write "if users do not select a form whose id is 'id-1'" as follows, but this works as if if-statement is passed. What could be wrong?</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>    $(document).on("keyup",
      function(p_k) {
        var target = $(this);
        if (target.is("id-1")) {} else {
          //do this ...
        }
      }
    );</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;h1&gt;Chat#index&lt;/h1&gt;

&lt;ul id="chat_area"&gt;
&lt;/ul&gt;
&lt;input id="id-1" class='form-control' type="text"&gt;</code></pre>
</div>
</div>
</p>