Hello Roberto,
For this arrangement, and with only a single pin active (low) during stop mode, and the other three pins as KBI inputs, wakeup would be available for only three of the twelve switches. If two pins were made actve during stop mode, the quantity would increase to four switches. With three pins active, we are back to wakeup from three switches.
However, a comprehensive wakeup might possibly be feasible if a fifth pin were available. Four additional diodes would be required, with each anode connected to the existing diode anodes, and with the cathodes combined at the new pin. This pin would remain active low during stop mode, and would be set to logic high during the normal scanning process. This will require two pins fewer than a conventional 4 x 3 switch matrix.
If your Vdd supply is 3 volts, or less, I would recommend that all diodes be of the Schottky type giving a lower forward voltage.
Regards,
Mac