change input capture event from 'keyup' to 'input'