fix esc keyboard shortcut - fixes #1699

formerly the Esc key was used to close the Groups dropdown. 
however the implimentation meant Esc as had preventDefault and you couldn't do normal cancelling of browser actions.... which i found distressing.

the fix just clicks the dropwdown shut (only when it's open )