now we update the candidate cursor when pressing up and down