4x6 button matrix. How do you read directly?

There is a simple library keypad.h to do this