I'm not sure what your problem is, I tested several buttons and they didn't have issues. If you send a photo or video of your game and code, I might be able to see what went wrong.
Other than that, all I can tell you is to make sure all of your buttons are identical, just to narrow down the inconsistencies.