Add API for button pressed/released