Im used pynput library for press keys and add text to the active window, it's works:
from pynput.keyboard import Key, Controller
keyboard = Controller()
keyboard.press('a')
keyboard.press(Key.enter)
But i cant execute combinations ctrl+c or ctrl+v