If interrupted, write out the correct key count.