The character is the Knave of Hearts (not "Knave of name"). He's central to the trial scene—accused of stealing the Queen's tarts, maintains innocence, and acts confused/nonsensical.
Other knaves (Diamonds, Clubs) appear, but Hearts is the prominent one.