Toggle windowed mode via unrealscript?

I know that you can press F11 to toggle windowed mode, but I’d like to add an option in my in-game settings. However I can’t see anything in the config that is bound to F11, and thus not sure what it’s calling to toggle windowed mode.

Any ideas? Thanks

sure just use the system settings toggle from a console command

ConsoleCommand("scale set FullScreen false");

Awesome, thanks for your help @Chosker