Send shortcut keys via teamviewer?

I leave my laptop running and want to run a macro, but the keys sent via teamviewer does not toggle the macro. Is there anyway to do this?