Coding task · Svelte and SvelteKit course · Module 2: Components

Practice: svelte:window and the Keyboard

Use svelte:window to listen for a key press

Task

Complete the code to listen for the keydown event