Fix macro playback for non-qwerty layouts.