Okay, while reading the guidelines for reporting a bug, I saw that I had to either replicate the problem or get a copy of my project and proceed to delete everything on it until what was left was the bug. After deleting and deleting, I found the reason why it happened.
So apparently, it was this animation that was causing all of this nonsense. I'm not sure how and why (I've always speculated it had something to do with the buttons), but I guess this was the reason why the game would freeze. If it weren't for you, I may have not found out why this happened. So thanks!