Fix keytable size calculation.

The total length should be divided by 'keystep'.