Getting Key Hits

Monkey Forums/Monkey Programming/Getting Key Hits

Chroma(Posted 2013) [#1]
Just trying to see if this is possible. I checked the docs and didn't see anything on it.

Right now we get key hits by doing a:
If KeyHit(KEY_A) Then ...


Is it possible to do a
Local key:Int = GetKey() "or whatever other command it might be..."

If key = KEY_A then ...
If key = KEY_UP then ...


EDIT: Meh, I jumped the gun. Just saw the GetChar command...