Managing engines via usb ,using Arduino

does anyone know how to insert buttoms into proccessing project and manage their events (ex click_event)?thx for answering!