title: How can I adapt Cheet.NET to bind to my C# Form?
body: <p>So I was having trouble setting up a keybind to do something in my project (Right Alt + Left Control)</p>
  
  <p>And I tried using an API called Cheet.NET which says it can easily adapt a project and allow making custom "konami" codes which can call functions.</p>
  
  <p>Cheet.NET's (Small) Documentation: <a href="http://jamiehumphries.github.io/Cheet.NET/" rel="nofollow noreferrer">http://jamiehumphries.github.io/Cheet.NET/</a></p>
  
  <p>So I installed it using the NuGet Package Manager in Visual Studio, Saved, and Reloaded my project.</p>
  
  <p>Came back, tried attempting to write a simple keybind, and I already got a lot of errors from the initialization code:</p>
  
  <pre class="lang-cs prettyprint-override"><code>
  // Initialization
  var cheet = new Cheet();
  myUIElement.PreviewKeyDown += cheet.OnKeyDown;
  
  cheet.Map("↑ ↑ ↓ ↓", () =&gt; { Debug.WriteLine("Voilà!"); } );
  
  </code></pre>
  
  <p>this is where Im placing the code:</p>
  
  <pre class="lang-cs prettyprint-override"><code>namespace WindowsFormsApp1
  {
      public partial class Form1 : Form
      {
  
          // Initialization
          var cheet = new Cheet();
          myUIElement.PreviewKeyDown += cheet.OnKeyDown;
  
          cheet.Map("↑ ↑ ↓ ↓", () =&gt; { Debug.WriteLine("Voilà!"); });
  
          public Form1()
          {
              InitializeComponent();
          }
  
          private void Form1_Load(object sender, EventArgs e)
          {
  
          }
      }
  }
  </code></pre>
  
  <p>It fails to recognize a lot of the code, and gives me alot of calculation errors too:  </p>
  
  <blockquote>
    <p>Invalid token '+=' in class, struct, or interface member declaration<br>
    type expected<br>
    Tuple must contain atleast Two Elements<br>
    Invalid token '"↑ ↑ ↓ ↓"' in class, struct, or interface member declaration</p>
  </blockquote>
  
  <p>I heard I was supposed to "bind" the package to my project, but Im not sure how to do so.</p>
  
  <p>Appreciate any future help.</p>