title: Accessing the key/value of a dictionary
body: <p>How do  I access the key/value of a dictionary? I  have this code:</p>
  
  <pre><code>    Try
  
  
          If keystrokeDictionary.ContainsKey(letter) Then
              keystrokeDictionary.Keys.Equals(letter)
          End If
  
      Catch ex As Exception
          MsgBox(ex.Message)
      End Try
      Return letter
  </code></pre>
  
  <p><code>Letter</code> is a single letter that gets passed in with just its string value. Then <code>keystrokedictionary</code> is a dictionary that the information looks like this:</p>
  
  <pre><code>{[65, 0]}
  {[66, 1]}
  {[67, 2]}
  </code></pre>
  
  <p>Where the key is the first number and the value is the second number. Since my code isn't looking at the key/value right, it's not returning a letter, and therefore not working.</p>