sensors.touchSensor1.onEvent(TouchSensorEvent.Pressed, function () { }) sensors.touchSensor2.onEvent(TouchSensorEvent.Bumped, function () { }) sensors.touchSensor3.onEvent(TouchSensorEvent.Released, function () { }) sensors.touchSensor4.isPressed(); sensors.touchSensor4.wasPressed();