(note: this is like maybe a decade old way of doing this and super obsolete) Capturing every onkeydown event and doing .preventDefault():