integrate the e-key

can you show me which method is better than flip-flop? I’ve already tried everything, have no idea.