change onKeyUp to onChange