you need diodes if you want 6 or more KRO.  Diodes allows electricity flow only in one direction.  Without diodes in the matrix, either ghost keys maybe registered when more than a couple of keys are pressed at the same time, or only 2 keys are registers when you have 3, 4, or more keys are pressed.