Add isButtonPressed.