public static void pause(double seconds) {
		if (!(instance != null && instance.screen != null)) {
			return;
		}
		if (seconds == 0) {
			// waiting for the user input (press any key);
			long time1 = System.currentTimeMillis();
			KeyEvent event = null;
			while(event == null) {
				if ((System.currentTimeMillis() - time1) > 5 * 60 * 1000) {
					break; // 5 minutes timeout;
				}
				event = instance.screen.getConsole().getLastKeyboardEvent(100);
				try {
					Thread.sleep(100);
				} catch (InterruptedException ex) {
					ex.printStackTrace();
				}
			}
		}
		else if (seconds > 0) {
			try {
				Thread.sleep((int)(seconds * 1000));
			} catch (InterruptedException ex) {
				ex.printStackTrace();
			}
		}
	}