test: check for button presses in middlebutton_device_remove_while_one_is_down
requested to merge JoseExposito/libinput:fix-test-middlebutton_device_remove_while_one_is_down into main
This test was failing when using Valgrind randomly. Check for button pressed explicitly to avoid issues.