title: How to handle Enter key press in input field?
body: <p>I built a simple app for learning purposes and want to be able to dispatch an action when the user presses <code>Enter</code> key in input field</p>
  
  <pre><code>view : Model -&gt; Html Action
    view model = 
      let 
        items = List.map (\ item -&gt; li [] [ text item ]) model.items
      in
        div [] [
         input [ onInput Change, value model.content ] [],
         button [ onClick Add ] [ text "Submit" ],
         ul [] items
        ]
  </code></pre>
  
  <p>Here is the view code. I hope it will be enough to explain my intent for you. What I'd like to have is ability to dispatch some action when user presses the <code>Enter</code> key while he is entering some text to input field.</p>