Sets a value for a key.
value to set
key to set value for
if key is not in map (see this.keyIndex)
See Implementation
Sets a value for a key.