private static void AddKeys(WPFKeys fromKey, H1Keys toKey)
 {
     if (!m_MapKeys.ContainsKey(fromKey))
     {
         m_MapKeys.Add(fromKey, toKey);
     }
 }
        public bool IsKeyDown(H1Keys key)
        {
            bool pressed;

            // tip1 - trygetvalue(hash lookup) is faster than containKey
            // containkey need to compute the hash code from a string key (which is penality). it is why it is slow!
            // tip2 - don't use dictionary with ++ operator (it is hash table so, it is slow!)
            m_ActiveKeys.TryGetValue(key, out pressed);
            return(pressed);
        }
 public bool IsKeyReleased(H1Keys key)
 {
     return(m_ReleasedKeySet.Contains(key));
 }
 public bool IsKeyPressed(H1Keys key)
 {
     return(m_PressedKeySet.Contains(key));
 }