Unplugging game controllers may fix the problem as well.
Another possible solution (Windows 7): Make sure that Steam is not running in Vista Compatibility mode. First make sure Steam is not running. Right click Steam icon, select properties and the compatibility Tab. If "run this programme in compatibility mode" box is ticked untick it.