Fix Chrome by switching to onkeydown.