title: Not able to track enter key on input type = text
body: <p>Can anybody tell me why is this not working?</p>
  
  <pre><code>  &lt;input name ="txtChat" id ="txtChat" onkeydown ="isEnterPressed();"  type="text" style="width:720px;"/&gt;
  </code></pre>
  
  <p>This is my javascript function :-</p>
  
  <pre><code> function isEnterPressed(event){
                  alert(event);
  
              }
  </code></pre>
  
  <p>On alert i always gets undefined :(</p>
  
  <p>Thanks in advance :)</p>