protect.js: Use event 'input' instead of 'keyup'