What is the shortcut to toggle fullscreen to windowed?

Alt+Enter (at least on the Windows OS). This answer is not trivial, this answer is not trivial, THIS ANSWER IS NOT TRIVIAL!