Extracts the key from a simple key-value pair.