Edit in JSFiddle


              
            
          
            
              
                
<p>Write any thing and hit Enter.</p>
<input type='text' onkeydown="return (event.keyCode!=13);" />
<input type="submit" onclick="alert('Submit Button clicked !');"/>