Can I send multiple signals to multiple windows?

Alright so i'm not sure were to post this but I'm doing it here anyway. So what i want to do is say i tell my computer to type w and i have multiple text documents open i want it to type w on each one of these documents. so if there is or isn't any software for this please let me now. Thank you in advance for the answers.