title: Using preventDefault in Elm
body: <p>How do I use preventDefault in elm? Say on a keyboard event:</p>
  
  <pre><code>keyDown keyCode model =
      case keyCode of
  
          13 -&gt; -- Enter key
              model
  </code></pre>
  
  <p>if we don't want the default behaviour?</p>
  
  <p><a href="http://package.elm-lang.org/packages/elm-lang/html/latest/" rel="noreferrer">Html.Events</a> has methods for it, but I don't understand how to use it in practice.</p>