In this paper, we propose an all optical JK flip-flop system consisting of three vertical-cavity surface-emitting lasers with embedded saturable absorber (VCSEL-SAs) is proposed and numerically simulated. Also, the effects of injection intensity, delay and noise on the JK flip-flop are numerically analyzed. The results show that, based on the spiking dynamics of excited VCSEL-SA, the proposed alloptical JK flip-flop model can perform all the fundamental functions of conventional JK flip-flop under suitable bias current, injection intensity and perturbation delay between two trigger signals. Moreover, the noise has a little effect on the performance of JK flip-flop, but the proposed system has good robustness to the noise. The results provide a feasibility for the application of VCSEL-SA devices in the future ultrafast neuromorphic computing systems.