Create a function in Python that takes a dictionary and a string as an argument and checks if the key is present in the given dictionary.
dict = {
    "Name":"John",
    "Age":25
}
String = "Name"
def checkKeyExists(dictionary, key):
    return key in dictionary.keys()

dict = {
    "Name":"John",
    "Age":25
}
String = "Name"

print(checkKeyExists(dict, String))