I know I'm a bit late to this party, but if you use a 74ACT240 to drive the cathodes, since it has totem pole output drivers aren't you in risk of shorting the power supply if two keys on different columns get pressed simultaneously? Or does the ACT series limit current? I'm afraid my knowledge of TTL kind of stopped with LS gates