def max_key(dict):
    """ Returns the maximum key in an integer-keyed dictionary.

    Args:
        dict (dict): The integer-keyed dictionary.
    Returns:
        int: The maximum key.
    """
    output = 0
    for key, value in dict.items():
        output = max(output, int(key))
    return output