Supporting array indexing and immediate exit of tree traversal upon hitting Return.