Depending on the game, you may need to add pauses (between 10-50 ms typical range) on or between key events to get them to register. Otherwise they are so fast that the game might not register them. You may want to experiment with this. I show how to do this with mouse outputs in the last chapter of my basic tutorial video with drag-drop (it works the same for keyboard outputs).