Onchange è per il tag select, usa onkeyup.