A improved version of JInput