Locking mechanisms incorporated in the switch assembly and operable by a key or a special tool