How to access MAPPED objects in a query

My data is structured as follows:

{
  "term": "LI",
  "keys": {
    "c1fc88fb-b5ab-4556-9510-bffaf5d7b164": {
      "base": "e66b2126-16ad-4cf3-9dfd-6f2ec1f322b7",
      "active": true,
      "options": [
        {
          "quantity": 1,
          "option": "BASE"
        },
        {
          "quantity": 1,
          "option": "PROG"
        },
        {
          "quantity": 1,
          "option": "COMP"
        }
      ],
      "units": 1,
      "version": {
        "patch": 1,
        "major": 4,
        "minor": o
      },
      "notBefore": 1520226000000,
      "name": "Temp Adjusted",
      "notBeforeReadable": "05 Mar 2018",
      "expirationDateReadable": "05 Mar 2025",
      "key": "c1fc88fb-b5ab-4556-9510-bffaf5d7b164",
      "properties": [
        {
          "name": "_id",
          "value": "5v6"
        },
        {
          "name": "external_key",
          "value": "EIM_744"
        }
      ],
      "expirationDate": 1741150800000
    },
    {"b5ab-4556-9510-c1fc88fb-bffaf5d7b164": {
      "base": "16ad-4cf3-9dfd-e66b2126-6f2ec1f322b7",
      "active": true,
      "options": [
        {
          "quantity": 8,
          "option": "BASE"
        },
        {
          "quantity": 8,
          "option": "PROG"
        },
        {
          "quantity": 0,
          "option": "COMP"
        }
      ],
      "units": 16,
      "version": {
        "patch": 1,
        "major": 3,
        "minor": o
      },
      "notBefore": 1520226000000,
      "name": "Temp Adjusted",
      "notBeforeReadable": "05 Mar 2018",
      "expirationDateReadable": "05 Mar 2025",
      "key": "c1fc88fb-b5ab-4556-9510-bffaf5d7b164",
      "properties": [
        {
          "name": "_id",
          "value": "6V1"
        },
        {
          "name": "external_key",
          "value": "8ksljdfh2"
        }
      ],
      "expirationDate": 1741150800000
    }		
  },
  "productId": "16ad-4cf3-9dfd-e66b2126-6f2ec1f322b7",
  "master": "f55f-40b4-be0b-0015e91b-73df6804085c",
  "cId": "9182475455",
  "_class": "libraryBo",
  "customerName": "Company"
}

As you can see the ‘key’ objects are originally Java Hashmaps and are keyed by a unique ID. How do I write an N1Q1 query to do something simple like resetting the Active value for all objects of that class? I have been trying for several hours and keep coming up blank. The problem seems to be the fact the objects are named as much as they are keyed with different identifiers.

UPDATE default AS d
SET d.`keys`.[v].active = false 
    FOR v IN OBJECT_NAMES(d.`keys`) END
WHERE .....

OR

UPDATE default AS d
SET d.`keys`.[v].active = false 
    FOR v IN OBJECT_NAMES(d.`keys`) WHEN v IN [.....] END
WHERE .....