Java Fresh

That's good news, because it means we have a chance to fix it. The first thing I would do is put a 2 second pause between your two statements. That would check if the app requires extra time before it will accept your keystroke. There are some apps that are like that. If that doesn't fix your problem we have to think some more.