Fix Key Check

This was causing issues on models that include an attribute named key.