for vue but you can rewrite it for vanilla
@keydown="(e: KeyboardEvent) => { if (e.key === '-') e.preventDefault()}"