Is there a way to switch the mesh selection mode by a shortcut?
This can be accomplished by pressing Ctrl+Tab. This will bring up the shown popup, in which you can select either Vertex, Edge, or Face mode. Note that you can use V, E, and F or 1, 2, and 3 to complete the action using shortcuts.