Do not respond to keys in d3 when a modal is open