To say things like while sleeping or while working in French, use en, followed by a verb ending with ‑ant!