Added alternative for getting key press when java console is not available #17