Check two things:
1) has the macro recorded properly are the keyups and keydowns in the correct order. I often find with my G15 that it will record A down B down A up B up. This seems to upset minecraft
2) if your trying to script / commands, make sure you have a wait inbetween 't' and the command to allow the chat console to come up