Bind escape to cancel modals.