Rep. Thomas Moakley, a Democrat from Falmouth, crafted legislation earlier this year that would require people driving mopeds to have a motorcycle license.