public void keyReleased(KeyEvent e)
    {
        switch (e.getKeyCode())
        {
            case KeyEvent.VK_C:
                gui.switchTool(new ChainPolygon(vertices, gui));
                break;
            case KeyEvent.VK_F:
                gui.switchTool(new FreeDraw(vertices, gui));
                break;
            case KeyEvent.VK_S:
                gui.switchTool(new SetEndPoints(vertices, gui));
                break;
            case KeyEvent.VK_D:
                gui.switchTool(new MoveOrDeletePolygon(vertices, gui));
                break;
            case KeyEvent.VK_E:
                gui.switchTool(new MoveOrDeletePoint(vertices, gui));
                break;
            case KeyEvent.VK_A:
                gui.switchTool(new JoinPolygons(vertices, gui));
                break;
            case KeyEvent.VK_Q:
                gui.switchTool(new InsertPoint(vertices, gui));
                break;
            case KeyEvent.VK_X:
                gui.switchTool(new ShowUnobstructed(vertices, gui));
                break;
            case KeyEvent.VK_H:
                printHelp();
                break;
            default:
                break;
        }
        
    }