Bind to input event rather than change+keyup

Fixes #1285.