title: input text doesn't save value on pressing enter
body: <p>I have a text field where the user is supposed to enter an address. On clicking the search button, a function is executed which uses the address to find POIs close by.  This is working well. However, when the user hits the return key, the value of the text field is not saved in the variable. This leads to the search being excecuted with the old value for the address variable.</p>
  
  <p>I don't even understand why it makes it difference at all, to be honest.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;form action="" method="post"&gt;
  &lt;input type="text" class="innenfeld" id="addressInput" name="addressInput"&gt;
  &lt;input type="button" class="send" onclick="newsearch()"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>JavaScript</strong></p>
  
  <pre><code>   function newsearch() {
       var address = document.getElementById("addressInput").value;
       var geocoder = new google.maps.Geocoder();
       geocoder.geocode({address: address}, function(results, status) {
         if (status == google.maps.GeocoderStatus.OK) {
          searchLocationsNear(results[0].geometry.location);
         } else {
           alert(address + ' not found');
         }
       });
     }
  </code></pre>