<human>:  check if key in dect.
<bot>: Here is a Python code to check if key is in Dect

import re

def __check_key_in_dect(dect, key):
  """
  Check if key in dect.
  """
  if key in dect:
    return True
  else:
    return False

# Enter the dictionary
dect = {"key1": "value1", "key2": "value2", "key3": "value3"}

# Calling the function
print((__check_key_in_dect(dect, "key1")))

#Example Output
# True

#Remember to inspect code for bugs.