We would build a circuit to turn on or off the LED. The cool part is that the LED would gradually get brighter or darker. Besides, turning on and off are controlled by the keyboard.
The circuit we propose is shown below.
-
1 100uF capacitor
-
1 STP16NF06 MOSFET
-
2 750 Ohmn resistors
-
1 lighting LED
We do not know what should be the best parameters for the components. We may need to try different resistors and capacitors.