save on keyup rather than keydown