I don't want to mislead you this has been done, how its been done and what with I'm not sure
I was going to use an Arduino which will easily give a output for a LED it can also be used as a sensor
the method in combining both switch with LED would make or break it.
this is for only a prototype, then code for 8052