Button to call OOM_KILL on Raspberry Pi

have a look at this Executing custom code on your Raspberry Pi from Cayenne