Are mechanical keyboards needed in PC gaming?

No, mechanical keyboards are merely “nice to haves” and not mandatory in PC gaming. The money you set aside for a mechanical keyboard should go to an SSD or a better GPU instead.