You should put both your test and live API keys in the settings and save it. You can get all these details in your Stripe account.
With the subscription plans, Stripe doesn’t let you switch an existing subscription plan between test and live. If you create a subscription plan for test mode, that is only available in test mode. If you create a subscription plan for live mode, it will be available in live mode only.