I have done something like you need but in a different way.
I made a relay box which has 2 extra buttons.
First button is for choosing Manual Override
Second button is for on and off.
So remotely you can put on a lightstrip or anything else you like (like your Keurig).
But if anyone is at home they can manually override.
The advantage is in the fact that if you are not at home the people who are can use the machine (light etc etc) anyway they like. And You will see on the web-page if the machine is operated manually.
When not operated manually you can operate it remotely.
This can be adapted to many other things and could even be build in in a machine (a lot of room is taken by the build in power supply). However when used externally you do not have to modify the machine and void the warranty.
Now there is one flaw.
It is not written in Basic (it's in Lua) but can be adapted easily as the code is very easy.
You can find my write up on this here:
http://lucstechblog.blogspot.nl/2016/09 ... erver.htmlLuc