qc.Keyboard.isAnyKey

Prototype

  • boolean isAnyKey(void)

Description

Check whether any key is pressed

Example

    if (game.input.keyboard.isAnyKey()) {
        console.log('Key down.');
    }