Buttons matrix behave like a switch?

Follow up : Is possible to do a group of separate buttons act as a swtich?