listening for keyup instead of input and change