Raise AttributeError on invalid key access