I don’t know whether this is possible, you’d have to separate the KeyDown and KeyUp hardware events, and that can’t be done via standard macro conditionals.
I’m not sure how ConsolePort does it, but anything that can be done with an addon can be done via scripting in a macro, provided you can fit it in the 255 character limit.
This post by @Gello goes into more detail, he uses this exact functionality with a Warrior’s Heroic Leap, but it requires a small addon as the script is complex.
https://us.forums.blizzard.com/en/wow/t/macro-help-events-on-target-area-of-a-spell/497074/7