Function getNodeTypeAndKey

Gets both the type object and key value for a node

The node to extract type and key from

Object containing the node's type and key