The shape difference is purely between PCB mount and plate mount keys. plate mount keys don't have the nubs you need to PCB mount, PCB mount have nubs that most plate mounted PCB's don't have the holes for.
Then there is whether the switch has a jumper lead, diode or LED installed. The PCB you are installing into would need to support the same item or it would need to be left out, which is not difficult.