public void keyTyped(KeyEvent e) {
    	char key = e.getKeyChar();
    	System.out.println("KEY TYPED: " + key);
    	switch(key) {
    	case 's':
    		//System.out.println("About to smooth!");
    		if(_wps.getSmoothPath().size() > 2) _wps.smoothWeighted(_tolerance);
    		update();
    		repaint();
    		break;
    	case 'r':
    		//System.out.println("About to smooth!");
    		if(_wps.getSmoothPath().size() > 2) _wps.reset();
    		update();
    		repaint();
    		break;
    	default:
    		//System.out.println("Key " + key + " Typed");
    	}
    }