code formatter

- rename `anObject` `aKey`
- change variable type for `key`