>  I would instead just set the key to `null` or `undefined`.

Good idea! This is way much better than using the silly `stopPropagation`.