Habs jetzt so:

Code:
...
	unsigned char sw1, sw2;
	while(1){
		sw1 = PollSwitch();
		sw2 = PollSwitch();
		if ((sw1 & 0b000001) || (sw2 & 0b000001)){
			StatusLED(RED);
		}
		else if ((sw1 & 0b000010) || (sw2 & 0b000010)){
			StatusLED(YELLOW);
		}
		else if ((sw1 & 0b000100) || (sw2 & 0b000100)){
			StatusLED(GREEN);
		}
		else if ((sw1 & 0b001000) || (sw2 & 0b001000)){
			StatusLED(OFF);
		}
		else if ((sw1 & 0b010000) || (sw2 & 0b010000)){
			BackLED(ON,ON);
		}
		else if ((sw1 & 0b100000) || (sw2 & 0b100000)){
			BackLED(OFF,OFF);
		}
...
Allerdings gehts so nicht ^^

Drücke ich jetzt K2 gehen die BackLed's an und die StautsLed schaltet auf Rot. Die StatusLed lässt sich auch nicht mit K3 ausschalten und Die BackLed's gehen bei betätigen von K1 auch nicht aus.