Unexpected '}' error , PHP syntax
I've been making a quote generator using a CSV file in PHP, using this code:

    <?php 
	$arrCSV = array();
	if (($handle = fopen("sentences.csv", "r")) !==FALSE) {
 		$key = 0;
		while (($data = fgetcsv($handle , 0, "|")) !==FALSE) {
			$c = count($data);
			for ($x=0;$x<$c;$x++) {
				$arrCSV[$key][$x] = $data[$x];
			}
		$key++
		}
		fclose($handle);
	}
    ?> 
The server is giving me the error "Parse error: syntax error, unexpected '}' in /public_html/TABA/index.php on line 25" I can't seem to figure out why, all of the loops are closed properly. Many thanks in advance.
Unexpected '}' error , PHP syntax
===

I've been making a quote generator using a CSV file in PHP, using this code:

    <?php 
	$arrCSV = array();
	if (($handle = fopen("sentences.csv", "r")) !==FALSE) {
 		$key = 0;
		while (($data = fgetcsv($handle , 0, "|")) !==FALSE) {
			$c = count($data);
			for ($x=0;$x<$c;$x++) {
				$arrCSV[$key][$x] = $data[$x];
			}
		$key++
		}
		fclose($handle);
	}
    ?> 
The server is giving me the error "Parse error: syntax error, unexpected '}' in /public_html/TABA/index.php on line 25" I can't seem to figure out why, all of the loops are closed properly. Many thanks in advance.