I dont think it's possible, the closest way is either using arrow keys (where you can detect it) or making the player cast an ability every few seconds to show that he is holding down on the key. What you can do is do something like an immolation, where you press once to turn it on and again to turn it off.