Chabad have a letter from the Rebbe about this
It is on Chabad Org section about Letters from The Rebbe Sleep and Dreams
Nocturnal Accidents
In reply to your letter:
Generally speaking, the matter about which you write4 sometimes results from a lack of sanctity in the manner of speech. Often it is a result of the person’s physical weakness. Sometimes the person’s tefillin or mezuzos need to be inspected and changed.
Rectify all the above, and increase your energy in the study of Torah, Toras HaNigleh and Toras HaChassidus. May G‑d grant you success.
(Igros Kodesh, Vol. IX, p. 273)
Guard Your Eyes has an earlier article on this:
1) Always guard your eyes carefully during the day.
2) Guard yourself from lustful thoughts.
3) The Kitzor Shulchan Aruch offers advice on preventing keri like reciting the first four Psalms before going to bed, and not overeating before retiring to sleep, and avoiding spicy foods..... The Arizal advises the concentrated recital of the Shema before going to bed as both a preventative measure and as a rectification of the souls that were taken captive by the waste of semen in the past. He also advises wearing a tallit katan while sleeping as further protection.
-----------------------------------------------------
After Keri
If you can immerse in a Mikva, it is praiseworthy, but it is not an Halachic obligation.
If the Mikva is hard for you, it would be good to at least wash yourself off in a shower. If you can keep the water pouring over your head for a few minutes straight, it can be considered like a Mikva in some ways.
But even without washing yourself off, you are allowed to daven and learn Torah since we pasken that אין דברי תורה מקבלין טומאה - "The words of Torah do not become impure".