I like doing the latch demos for new teams.
Inside the Forever loop the code is being evaluated numerous times each second. If you hold down the bumper switch it will change the motor state back and forth in each loop (on / off / on / off every second).
If you add a latch it only allows the MotorRun variable to switch one time and it will not switch again until you let go of the bumper (un-latch) and press it again.