Editing a Library

So I just found out there were just some syntax errors from the code I got from the link (that was really silly of me).

However, the problem now is that no output is coming out. What I'm trying to achieve is outputting multiple keypresses at the same time.

Here is the original code:

bool Keypad::scanKeys() {
	boolean anyKey=false;

	// Scan keypad once every XX mS. This makes the loop() count
	// go from about 4,000 loops per second to about 40,000.
	if ( (millis()-startTime)>debounceTime ) {

		// When sharing row pins with other hardware they may need to be re-intialized.
		for (byte r=0; r<sizeKpd.rows; r++) {
			pin_mode(rowPins[r],INPUT_PULLUP);
			pin_write(rowPins[r],HIGH);	// Enable the internal 20K pullup resistors. (Arduino<101)
		}

		// Scan the entire keypad/keyboard and provide a key pressed status to
		// setKeyState().  Also, determine which keys are being pressed.
		for (byte c=0; c<sizeKpd.columns; c++) {
			pin_mode(columnPins[c],OUTPUT);
			pin_write(columnPins[c], LOW);	// Begin column pulse output.
			for (byte r=0; r<sizeKpd.rows; r++) {
				bitWrite(bitMap[r], c, !pin_read(rowPins[r]));  // keypress is active low but invert to high.
				if (bitRead(bitMap[r], c) == 1)
					anyKey = true;
			}
			// Set pin to high impedance input. Effectively ends column pulse.
			pin_write(columnPins[c],HIGH);
			pin_mode(columnPins[c],INPUT);
		}
		updateList();	// Manage the Active-Key list. Adding/Removing active keys.

		// Reset debounceTime delay.
		startTime = millis();
	}
	return anyKey;	// Report if any keys are active.
}

Now here's the new code:

bool Keypad::scanKeys() {
	static unsigned int allKeys = 0;
	byte curKey = 0;
	boolean anyKey;
	
	// Scan keypad once every XX mS. This makes the loop() count
	// go from about 4,000 loops per second to about 40,000.
	initializePins(); 
	
	for (int c = 0; c < sizeKpd.columns; c++) {
		pinMode(columnPins[c], OUTPUT);
		digitalWrite(columnPins[c], LOW);
		for (int r = 0; r <sizeKpd.rows; r++) {
			curKey = digitalRead(rowPins[r]);
			allKeys += curKey;
			if (curKey == 0) curKey = keymap[c+(r*sizeKpd.columns)];
			
			if (r==(sizeKpd.rows-1) && c==(sizeKpd.columns-1)) {
				if (allKeys == (sizeKpd.rows*sizeKpd.columns))
					anyKey = OPEN;
				else
					anyKey = CLOSED;
			}
		}
		pinMode(columnPins[c], INPUT);
		digitalWrite(columnPins[c], HIGH);
	}	
	allKeys = 0;
	return anyKey;
}