If it is Shareware, you can almost sure that it is on cd.textfiles.org. Problem is, it's quite hard to find exactly your game without idea what it can looks like...
...Well, I tried to seek by myself, but only
Robomaze 2 looks similar to your description. It's platformer, with robot and keys. Unfortunately, nothing like R2-D2, but still worth to check.