If you're using a word processor such as MS Word or LibreOffice, you can define a block of text or a whole document as right-to-left, and change the keyboard layout for that section as well. For example, to use Arabic, Farsi or Hebrew in LibreOffice, see How to setup LibreOffice for Arabic and Persian? and Edit Hebrew with LibreOffice.
This will not help with text entry in CMD, browsers etc., though.