getting key & status