if 'key1' in dict:
  print "blah"
else:
  print "boo"