I made a Stormtrooper so you can change filament at the the correct layer to get 2 different colors. All you need for the magnet part is 2 6x3mm magnets. If printing the key chain you'll have to size it down a little.
If anyone is interested in a finished version here is my shop.