fixed macro action to allow repeated keypresses