A keyboard and mouse is better for competitive first-person shooters and real-time strategy games. In virtually all other cases, though, a good controller is equal or sometimes even better thanks to its high level of comfort and intuitive experience.