 outcome:</p>
<pre language="razor">&lt;button type="button" @onclick="HandleHTMLEventWithMouseEvent"&gt;
    Handle with C# with event args (Is holding Ctrl? @isHoldingCtrl)
&lt;/button&gt;

@code {
    private bool isHoldingCtrl = false;

    private void HandleHTMLEventWithMouseEvent(MouseEventArgs e)
    {
        isHoldingCtrl = e.CtrlKey;
    }
}</pre>
<p>To handle an HTML event with C#, you need to declare a method with the corresponding event argument class. In the example above, the C# method <code