I want to make a control panel to my fligth sim and need to connect an LED to an on-on switch on matrix. I'm already using keypad.h library and I'm using arduino pro micro.
How do i shold soldering it to have the LED with bright
In this topic the main question is how do i connect the led to the switch in order to he only turn on when i turn on the switch. I forget to say that the on-on switch will work like an on-off switch
Since it is an on-on switch there is no center off. No problem, simply use the center lead and one of the side leads as as your switch connections. If you pick the wrong side lead it will still work just switching in the reverse direction.
Can you light the led from the battery? - Just add a switch to break any of the wires coming from the battery to the led, connecting the wires as @gilshultz said.
Since the switch is in a matrix, I don't think you can use the switch itself to turn the LED on/off. It is possible to share some of the scanning pins for a switch matrix with an LED matrix, but that requires a few additional pins and some coding (as an example, you can use the row pins for both the switch matrix and an LED matrix, with separate column pins for each matrix).
But the rest of your post makes no sense. So it is hard to be sure, but some of it may be incorrect.
Your diagram seems to show a diode in series with the LED and resistor. That is not required at all. One resistor is needed for every LED, not one per column.