Hey RuslanI,
You are aware of this option in System Prefs > Keyboard > Input Sources?
If not it might make some things more convienient for you.
Keyboard Maestro “Translate Characters from English to Russian” Macro
Okay, let's forget about trying to recreate key-code-based key-presses and just translate characters.
You may need to add things to the translation table in the first AppleScript, but this should get you started.
Translate Characters from English to Russian & Change Input Language.kmmacros (6.9 KB)
—Chris