Fix 'characters left' off-by-one error on the application page by capturing the change on keyup, not keydown