I am trying to get keyup event on a specific element in svelte but it seems it is not possible.
I checked this REPL and also I tried by adding the event to the document and it worked fine. But I don't want to add it to the document and I just want to have it on my element.
<script>
    const key = () => {
        console.log('key')
    }
</script>
<div
    on:keyup={key}
     style="width:100%; height:200px; border:2px solid #ff0000;"></div>
