Change criterion of judgment on keyup.