actual upstream code for new input type; fixes kltm/go-mme#88