Setstage is the command to adjust your quest status, the next number is the ID of the quest Power of the Atom, and stage 60 is the stage where you collect your reward for blowing up megaton in the quest as taken from the Wiki page. It would look something like this: setstage 00014e9e 60 This command can be used as a workaround for bugged quests or to skip hard/annoying parts of the quest, though use at your own risk as its impossible to predict everything that can happen. you would just set your quest status for the quest to blow up megaton to be right after you actually blow it up. there are 3 parts to this command, and all 3 can be obtained from the wiki, with 2 of them from the quest page.
Through the command console, you can give yourself any quest and set it to almost any point (called the stage). Y U NO WORK pointed out even hacking the key does not give you ownership, but with many Bethesda games, you can skip events without actually doing them to obtain the key the 'proper' way by using the command console, (cheating). Though i have not tested this, You may be able to do this by cheating using the command console.