An intramedullary nail includes a first nail module having an elongated body and at least one notch on a first connecting end, a second nail module having an elongated body and at least one notch on a second connecting end, and a key. The key has a ring having a first ridge on a top side and a second ridge on a bottom side, the key configured to be positioned between the connecting ends of the first and the second nail modules with the first ridge of the key fitting into the notch of the first nail module and the second ridge of the key fitting into the notch of the second nail module. The first ridge is offset from the second ridge and the offset between the first ridge and the second ridge determines a relative orientation between the first nail module and the second nail module.