If you're just checking before trying to add a new value, use the ContainsKey method:
if (!openWith.ContainsKey("ht"))
{
openWith.Add("ht", "hypertrm.exe");
}
If you're checking that the value exists, use the TryGetValue method as described in Jon Skeet's answer.