12 keys keypad, library error when uploading!!

I didn't understand at the beginning what you meant with columns swapped with rows, but now I do.

That's alright. You weren't ready, to use the force :wink:

Using 4X4 keypad is much better, since you won't mix one row pin with column pins.