device for outputting HIGH when input have been HIGH?
What you want is called a set/reset flipflop.  Various flipflops have R and S inputs, but you can also make a primitive one out of two NAND gates.  For example:



Follow the logic signals thru the circuit to see how it works and how it has memory.