S- Switch to Soldier, increasing your chances of spawning bread and lowering your walk speed. Space- Switch to any other class, decreasing your chances of spawning bread.
This is a project that recreates the chances of bread spawning while teleporting in TF2. I got this idea after watching a video of some guy explaining how spawning bread works in TF2