change keypress event to keyup