Switching to Unlit mode during runtime from a blueprint node

I want to be able to toggle Unlit Mode at the press of a key. How can I do this? at Runtime of a packaged game, thru blueprint?

play in editor you can press f2 switching to unlit.f3 switching back.

How can this be done via blueprints?

i guess you can’t.however im not sure.
and this only work in PIE.
if you mean switching it on packged game…
i also want to know how to do it.