I would like to toggle my `div` on clicking anywhere on the parent `div` except when an `anchor` element is clicked. So for example, if I click the first text in my example, I would like it to toggle but on the second text in my example, I don't want it to toggle.

**[JSFiddle](https://jsfiddle.net/Lwaxnmoc/1/)**

I have tried using `!key.relatedTarget.tagName == 'a'` but I keep getting `undefined`