public void key(int aKey, boolean aDown)
	{
		if (aDown)
		{
			if (aKey == KeyEvent.VK_ESCAPE) stop();
		}
		else
		{
			if (aKey == KeyEvent.VK_S)
			{
				if (mSolver.isSolving()) mSolver.stopSolving();
				else mSolver.solve();
			}
			if (aKey == KeyEvent.VK_SPACE) mGenerate = true;
		}
	}