Stack: Vanilla HTML / CSS / JavaScript. No frameworks, no libraries
You're given a row of six piano keys — C, D, E, F, G, A. Make them respond to input.
A key should appear pressed the entire time it is being held down, and return to normal the instant it's released. "Pressed" means the element has the CSS class active — the styling for .key.active is already written for you
The keys must respond to both input methods:
c, d, e, f, g, a).active to that key; releasing removes it.active to that key; releasing removes it.c and e together should light up bothk, Enter, arrow keys) are ignored.