Change `topLevelTarget.attachEvent` to `activeElement.attachEvent` so it's easier for readers to find the `detachEvent` call below.