There has been reports of Steam giving you this message when trying to link your Steam keys: "Please first activate the original game. The product code you've entered requires ownership of another product before activation."
This message appears when you have not downloaded GameMaker: Studio Standard. This is what is considered the base product on Steam.
Simply downloading this will allow you to enter your Steam keys afterwards.