You cannot keep the sword. It is only usable near the very end of the game, so enjoy it while it lasts, because it will not stay in your inventory afterward.