Depending on what features you want, it could be something as simple as this. I'm no expert on button matrices, that link is just some very simple example code I wrote to help someone in that topic. If you need to do anything other than detect buttons opening and closing, then it might be worth looking at more sophisticated examples.
1 Like