{ // Only acts while the modal is open. if (open && e.key === 'Escape') finish(); }} /> {#if open} {/if}