Using the analog inputs for more button switches

Just remember that you can have a lot of switches monitored this way if two or more never get pressed at the same time. If this is going to happen then the number of switches is restricted in theory to the number of bits you have in the A/D conversion. In practice I would say the maximum you could achieve is the number of bits minus two or three.