Your comments

No, using the keyboard is fine. It's only when clicking the buttons. I'm just using the standard Ubuntu setup (version 12.10), nothing special. I don't have any similar issues clicking buttons in any other programs so it doesn't feel like a system issue, but maybe there is some setting somewhere causing the problem.