Forearm
The median nerve continues in the cubital fossa medial to the brachial artery and passes between the two heads of  the pronator teres, deep to the bicipital aponeurosis (aponeurosis of biceps) and superficial the brachialis muscle. It crosses the ulnar artery (branch of brachial artery) while being separated by the deep head of the pronator teres. It then travels between the flexor digitorum superficialis (above) and flexor digitorum profundus (below). The median nerve is accompanied by the median artery (a branch of anterior interosseous artery) during this course. Then,  about 5 cm above the flexor retinaculum (wrist), it emerges between the flexor digitorum superficialis (medially) and the flexor carpi radialis (laterally) into the hand.The main trunk of the median nerve innervates the superficial and deep groups of the muscles in the anterior compartment of the forearm with the exception of flexor carpi ulnaris. The median nerve does this by giving off two branches as it courses through the forearm:

Muscular branches are given off in the cubital fossa to supply flexor carpi radialis, palmaris longus, and flexor digitorum superficialis. The anterior interosseous branch is given off in the upper part of the forearm, courses with the anterior interosseous artery and innervates flexor pollicis longus and the lateral half of flexor digitorum profundus (the ulnar half is supplied by ulnar nerve, as is the flexor carpi ulnaris muscle). It ends with its innervation of pronator quadratus.
Presence of an ape hand deformity when the hand is at rest, due to an hyperextension of index finger and thumb, and an adducted thumb
Presence of benediction sign when attempting to form a fist, due to loss of flexion of radial half of digits
Sensory deficit: Loss of sensation in lateral 3+1⁄2 digits including their nail beds, and the thenar areaAt the elbow

Entrapment at the level of the elbow or the proximal forearm could be due to the pronator teres syndrome.Within the proximal forearm: Anterior interosseous syndrome

Injury to the anterior interosseous branch in the forearm causes the anterior interosseous syndrome
Common mechanisms: Tight cast, forearm bone fracture
Motor deficit: Loss of pronation of forearm, loss of flexion of radial half of digits and thumb
Sensory deficit: NoneAt the wrist

Common mechanism: Wrist laceration
Motor deficit:
Weakness in flexion of radial half of digits and thumb, loss of abduction and opposition of thumb
Presence of an ape hand deformity when the hand is at rest may be likely, due to an hyperextension of index finger and thumb, and an adducted thumb. Nevertheless, an ape hand deformity is not a requirement for a carpal tunnel syndrome diagnosis.