TermBuf::Input::Utf8
As much of UTF-8 as decoding a keystroke needs.
A deliberate copy of the one thing termbuf's Unicode module offers that the decoder uses, so that the input side carries no dependency on the width and grapheme machinery it has no use for.