System.exit(3) when escape is pressed