Function InputSingleton.isKeyPressed

Returns true if you are pressing the key. You can pass a keylist constant.

bool isKeyPressed (
  const(long) scancode
) nothrow @nogc const;