Should probably check for the case where `lastKana` is not actually in the map, and return an error or something