KeyObject class updated