@joel simple solution that requires the use of a raspberry pi...

Set up a Node-Red server on the pi configured to get button events. Next forward those events to a websocket listener. Now any application/site that can connect to a websocket can use the button events within your local network.