{#if editing} { if (e.key === "Enter") save(); if (e.key === "Escape") cancel(); }} /> {:else} {@render display({ value, startEdit })} {/if}