The keyblade both locks and unlocks. In the first game, the objective was to seal all the worlds off. The second game had you opening the paths between worlds again.