There is no requirement that an electron will jump energy levels if and only if a photon of matching frequency interacts with it. You can use microwaves instead of UV/visible light to the same effect, so long as the microwave resonates with one of the frequencies of the atom