To deal with "keyboard warriors", the following methods can be considered.
First, education is crucial. Promote digital citizenship and teach people about the importance of respectful communication. Encourage them to think before they type and understand the impact of their words on others.
Platforms can play an important role. Social media platforms and websites should have strict community guidelines and enforce them. For example, they can give warnings to those who use offensive language or engage in cyber - bullying, and suspend or even ban accounts for repeated violations.
Also, encourage positive online interactions. Highlight positive comments and examples to set a good standard. When people see more kind and rational voices, it can have a positive influence and reduce the space for "keyboard warriors".