Switched back to onkeypress.