You can turn on cheats in Minecraft by enabling it when you create your world, or by going into your Settings.
Enabling cheats in this version of Minecraft can be done at any time, and it is actually quite simple whether you are starting a new world or loading a game for a world that is already in progress.
/effect give [Player Name] 1 [seconds] [Effect Level] Provides the Speed effect to the indicated player, according to the chosen duration and level /effect give [Player Name] 2 [seconds] [Effect Level ...