onkeydown can be useful.