common/key.h: fix non-wide character build