There is a type of plug/socket combination known as a Walsall Plug, which looks similar to a standard 13A UK plug, but the pins go the other way [90° from standard]...
Left, Standard right Walsall...

You replace the regular plug on the coffee machine with a Walsall, then make a short extension cable from 'standard plug [any nationality] to a Walsall socket' - then only the holder of the extension 'key' could make coffee.
If you made inline mains extenders plug to socket, for either all group members, or just one as a 'loaner' to be returned to the 'holder of the key' then no-one else could even plug it in.
The Walsall would function on any international standard mains system, with or without earth [ground] as your 'lock & key' contains both elements.
The same system could be made from any non-standard connector, from as esoteric as the Mains Power XLR [Power Canon]...

...to "any plug/socket not readily available in your territory"
You're not really trying to keep out the 'serious hacker' who would investigate how to get his own 'key' made, just casual "ooohhhhh, free coffee" wannabes ;-)