4 digit 7-segment counter with only 1 shift register

I also have tubes of 595s. IIRC, 20ma per channel and some max current per chip. I use 5 arduino pins and 2 595 to sense 16 keys and control 8 leds.
Picture: