Okay, I figured it out. I have two machines at my desk and they're networked. I use a program called Synergy to allow me to control both machines with one keyboard and mouse. It was Synergy that was causing the issue. It's all good now. Thanks for your suggestions guys, and sorry for wasting your time.