Add keyfmt from https://github.com/bkkcoins/misc for convenience.