You will not be using a regular off the shelf IR detector unless you add some extra logic.
If you used the detector to pick a relay and then used a "D" flip flop it would work. You could also do it all with relays if you want to go "old school".


Greg Fretwell