Layout mode matches a physical keyboard (keys in the same places as a native PC). Use it if you already touch-type that language.
Phonetic mode maps Latin letters to script by sound — ka→का, sh→ش. It is slower for experts but faster for learners and English-QWERTY users.
On WriteWithin, many keyboards offer both. Press Esc anytime to flip to English labels, then switch back.