Raise KeyError for invalid keyword arguments