KEY_STATE GetKeyState(KEY key)/ETHInput

Returns the state of the keyboard key.

Sample:

ETHInput@ input = GetInputHandle();
if (input.GetKeyState(K_D)) == KS_HIT)
{
    print("User has just hit the D key!");
}