To change character classes in TF2, you need to first open Settings and navigate to the “Keyboard” tab. Select “Change Class” and then “Edit Key” from there. Set your preferred key bind for character changes, after which you can simply press that key to change characters in TF2.