In MOBAs like Heroes of the Storm you can configure your hotkeys in 3 modes: on-press, on-release, and normal.
I use on-release with abilities that require careful targeting, which causes the press action to activate targeting with the ability firing on release. You can dismiss the ability by right-clicking too. This is usually more reliable than normal targeting since the game requires very quick interactions.