Simulate a key held down in Java
Thread.sleep() stops the current thread (the thread that is holding down the key) from executing. If you want it to hold the key down for a given amount of time, maybe you should run it in a parallel Thread. Here is a suggestion that will get around the Thread.sleep() issue (uses the command pattern so … Read more