"turn red on" and "turn red off" aren't actual commands; you have to determine what the interface between the NXT and the LED is. If it's the same as a lamp, you control it like this:
Code:
motor[motorA] = 100; // Turn port A lamp on
motor[motorA] = 0; // turn port A lamp off
Also, the code you have will respond to sensor changes, but will ignore controller input. To learn how to interact with game controllers, look at the FTC example programs provided with RobotC.