How do I perform a pathway related grouping of genes?
The DAVID tool is always interesting, and easy to try: https://david.ncifcrf.gov/gene2gene.jsp

You submit a list of genes, it uses several different annotation databases to annotate the gene list, and then it clusters the results and tests for statistical enrichment. You can potentially learn about functional enrichment in your gene list from several different independent annotations.