If a gas absorbs heat, then how can its temperature remain constant?
From the first law, $\Delta U=Q-W$.  If the process is isothermal, then $\Delta U=0$ (assuming an ideal gas), so Q = W.  The heat energy is consumed by your gas doing work, so there is no change in internal energy (temperature).