changed to keyup() event