This the code I made for a twitch bot that gets commands from chat and makes the computer think you pressed the correspondng key.