I may have misunderstood your question, but assuming that "0", "1" and "2" are key names in the dictionary, the correct syntax will be:
MessageObject Set Text --> DictionaryName.Get("2")
Similar to get text from index 2 of the array:
MessageObject Set Text --> ArrayName.At(2)
.
You can find these and lot of other very useful expressions if you press Ctrl-F4 while editing any event/action: