Also make sure you are using a pull-down resistor with each button to avoid a floating status of the GPIO pin. I currently have no link at hand, but if you search the forum or Google you‘ll find a scheme how wire the pull-down.
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
T