Spacebar closes the dropdown

Is there a way to not close a dropdown if you press the spacebar? I have a form inside a dropdown and pressing space keeps closing the form

Read only version here:

Hi @nabbiechan,

First off, cool site. Question for you, why are you using a dropdown and not an interaction to get the same desired result. This would eliminate the need for custom code.

I guess it’s because it was easy for implementation in comparison (I was always adamant about using interactions to show certain actions). But I just recreated it through interactions and it seems to work on my end now. Thanks!

Good to hear! Lmk when it is done, would like to see final result!