Raise KeyError instead of a string exception.