CurrentValue["EventKey"] fails?

CurrentValue["EventKey"] fails?

Post by Chris Osbo » Tue, 20 May 2008 19:23:34

To all,

I am unable to create an expression that reports what key has been
pressed. It seems that CurrentValue["EventKey"] always returns

Here is the code:

EventHandler["a string", "KeyDown" :> Print[CurrentValue["EventKey"]]]

I get similar results with:

"KeyDown" :> (key = CurrentValue["EventKey"])]

Thanks in advance,