keeping track of the key