`onkeypress` changed to `onchange` 

Codes works well with `onchange`  as pointed out. Lets have the `window.rezPageSaved = false;` on `onchange` event.