onkeydown="typ(event)"
addEventListener('keydown', event => { if(event.target.type === 'number' && [187, 189,69].includes(event.keyCode)) event.preventDefault(); }, true)