Minecraft wiki entry for Target_selectors, associated text: Permitted values for <gamemodeName> are spectator,‌[JE only] survival, creative, adventure. In Bedrock Edition, the shorthand values s and 0, c and 1, and a and 2 may be used for Survival mode, Creative mode, and Adventure mode respectively.