The AcceptReturn=True doesn't work in a MaskedTextInput with Mask="l20" (l is the small letter of L ). Controls behaves expected when the Mask is "a20".