# C1.Maui.Core.KeyEventArgs

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Maui_Core_KeyEventArgs" data-uid="C1.Maui.Core.KeyEventArgs" class="text-break">KeyEventArgs Class
</h1>
  <div class="markdown level0 summary"><p>Provides information for keyboard events.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventargs">EventArgs</a></div>
    <div class="level2"><span class="xref">KeyEventArgs</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Maui.Core.html">C1.Maui.Core</a></h6>
  <h6><strong>Assembly</strong>: C1.Maui.Core.dll</h6>
  <h5 id="C1_Maui_Core_KeyEventArgs_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class KeyEventArgs : EventArgs</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class KeyEventArgs
    Inherits EventArgs</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Maui_Core_KeyEventArgs__ctor" data-uid="C1.Maui.Core.KeyEventArgs.#ctor">
          <a class="xref" href="C1.Maui.Core.KeyEventArgs.-ctor.html#C1_Maui_Core_KeyEventArgs__ctor">KeyEventArgs()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Maui_Core_KeyEventArgs_Alt" data-uid="C1.Maui.Core.KeyEventArgs.Alt">
          <a class="xref" href="C1.Maui.Core.KeyEventArgs.Alt.html#C1_Maui_Core_KeyEventArgs_Alt">Alt</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether alt key is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_KeyEventArgs_Char" data-uid="C1.Maui.Core.KeyEventArgs.Char">
          <a class="xref" href="C1.Maui.Core.KeyEventArgs.Char.html#C1_Maui_Core_KeyEventArgs_Char">Char</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the char associated with the key that originated this event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_KeyEventArgs_Command" data-uid="C1.Maui.Core.KeyEventArgs.Command">
          <a class="xref" href="C1.Maui.Core.KeyEventArgs.Command.html#C1_Maui_Core_KeyEventArgs_Command">Command</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether command key is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_KeyEventArgs_Ctrl" data-uid="C1.Maui.Core.KeyEventArgs.Ctrl">
          <a class="xref" href="C1.Maui.Core.KeyEventArgs.Ctrl.html#C1_Maui_Core_KeyEventArgs_Ctrl">Ctrl</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether control key is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_KeyEventArgs_Key" data-uid="C1.Maui.Core.KeyEventArgs.Key">
          <a class="xref" href="C1.Maui.Core.KeyEventArgs.Key.html#C1_Maui_Core_KeyEventArgs_Key">Key</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the key identifier.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_KeyEventArgs_OriginalEvent" data-uid="C1.Maui.Core.KeyEventArgs.OriginalEvent">
          <a class="xref" href="C1.Maui.Core.KeyEventArgs.OriginalEvent.html#C1_Maui_Core_KeyEventArgs_OriginalEvent">OriginalEvent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the original event that originated this event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_KeyEventArgs_Shift" data-uid="C1.Maui.Core.KeyEventArgs.Shift">
          <a class="xref" href="C1.Maui.Core.KeyEventArgs.Shift.html#C1_Maui_Core_KeyEventArgs_Shift">Shift</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether shift key is pressed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
