Tlc5940 multiplexing code

Yes those are pull down resistors for reading the switches. That circuit uses the same matrix scanning that lights the LEDs to scan for key depressions at the same time.