@Lpokimo said in Java Game engine Problem:

input = new Input(null); (This

In your version you have

input = new Input(null);

in original version it is correct

input = new Input(this);

Line 26 in GameContainer.java file