I'm looking for a way to code a keyboard in javascript and I've already got the structure using two for loops to create a table that contains 3 rows to simulate an azerty keyboard.
I need a function that's able to search through a table like this one:
let keyboard_layout = [
['A','Z','E','R','T','Y','U','I','O','P'],
['Q','S','D','F','G','H','J','K','L','M'],
['W','X','C','V','B','N']
]
and when I give the function a letter and a color it should add this to the specific letter's position in my html.