In Edit Mode, is it possible to invert selection?
This can be done with CtrlI or Select -> Inverse.



It detects which selection mode you're in, and inverts the selection by vertices, edges or faces appropriately.