title: Angular Universal ReferenceError - KeyboardEvent is not defined
body: <p>I have added &quot;domino&quot; in the <strong>server.ts</strong> and even updated <strong>webpack.server.config.js</strong> as :</p>
  <pre><code>module: {
      rules: [
                { test: /\.(ts|js)$/, loader: 'regexp-replace-loader', options: { match: { pattern: '\\[(Mouse|Keyboard)Event\\]', flags: 'g' }, replaceWith: '[]', } },
                { test: /\.ts$/, loader: 'ts-loader' }, 
             ]
  }
  </code></pre>
  <p>But still getting the same error : &quot;ReferenceError  - KeyboardEvent is not defined&quot;.</p>
  <p>I am running these commands in terminal</p>
  <blockquote>
  <p>$npm run build:ssr</p>
  <p>$npm run serve:ssr</p>
  </blockquote>
  <p>Commands Defined in <strong>package.json</strong> as :</p>
  <pre><code>&quot;build:ssr&quot;: &quot;npm run build:client-and-server-bundles &amp;&amp; npm run webpack:server&quot;,
  &quot;serve:ssr&quot;: &quot;node dist/server.js&quot;,
  &quot;build:client-and-server-bundles&quot;: &quot;ng build --prod &amp;&amp; ng run angular.io-example:server&quot;,
  &quot;webpack:server&quot;: &quot;webpack --config webpack.server.config.js --progress --colors&quot;
  </code></pre>
  <p>Does anybody have an idea, how to get rid of this error?</p>