the goal is simple. click on a key and click it on the lock. it's completely random for which key is correct. However you are able to only use 12 of those keys so choose wisely. It's kinda like a mario party minigame.
It doesn't matter which color and shape the keys are. I accidentally unlocked the lock on my first key lol.