added keyup hook for connect