Change onchange to onkeypress