Though I don't know if you could (easily) programatically capture this character, however, you might be interested in:
I'm not sure what the range of values this returns is, but you may be able to wrestle with it inside a switch construct to produce the desired effect.
If you figure out a better solution, let us know!