Decoding internally and externally driven movement plans