Simple question: How to get keycodes?

I started to use Senocular’s “KeyObject” class so I can detect multiple key presses. I can detect the named keys just fine using (in this example using the LEFT key):

if (key.isDown(Keyboard.LEFT))

or

if (key.isDown(key.LEFT))

But how do I detect the “w” key for instance? I know I would need to get the keycode for it, but I can’t find the simple function call that returns the keycode for a given key.

Thanks for any help, I am going crazy trying to find the solution for this seemingly simple problem.