Normally, when I hit Tab while in Edit mode, I switch to Object mode, and vice versa.
However, at seemingly-random times, I will hit Tab in Edit mode and instead switch to Weight Paint. Hitting Tab again does not return me to Edit mode.
I cannot figure out any reason for this. Is there something I don't know about Blender's hotkey system?