Added keyup event to update model.