Added Input class and moved GUI.win onChar callback to it.