Hello Fredrik, congrats on your solution.
About the feedback you asked for:
- You are listening to the
click
event. Try to add a second event listener to listen for the space key. - Or, you can use another kind of element for that, for example, an input checkbox (https://www.w3schools.com/howto/howto_css_switch.asp)
About the Template Literals you did. I think it's a good workaround to have the elements changed, but, you could simplify it just changing the values you need to change. Your templates are too long, because you replace the whole information. Try to replace just the piece of element you need.