KeyboradEvent cannot get the UP,LEFT,DOWN,RIGHT keycode? (gets zero)

I can get many normal keys’ code as A,B,C, or 1,2,3

But cannot get UP key, DOWN key, etc

there’s indeed an event fired but get the code as “0”(Zero)

very strange, any tips for this? thanks!

Key.DOWN
Key.UP
Key.LEFT
Key.RIGHT

Should work for you, just put it where the keycode goes.