You can keep contributing to a Roth IRA after retirement, as long as you have some earned income. Once you turn 59½, you can start taking tax-free withdrawals of both contributions and earnings from your Roth IRA if you've had the account for at least five years.
If you are retired and do not have earned income you cannot contribute.
Made mistake of contributing $7000 to it and had to undo it