long KeyGet ( long  milliseconds)
Description:
KeyGet returns the value of the key pressed.
Parameters:
millisecondsThe number of milliseconds to wait for the key to be pressed.
Use RSIWaitFOREVER (-1) to wait forever.
Use RSIWaitPOLL (0) to return immediately.
Returns:
(long) -1 = no key was pressed, or value of ASCII character.
Sample Code:
  while (controller->OS->KeyGet(RSIWaitPOLL) < 0)
   {
    // waiting for someone to press a key
  }
Examples:
controllerInterrupts.cpp, custom97.cpp, driveMonitor.cpp, motorfeedback.cpp, multiaxisMotion.cpp, sequencerDigitalOutput.cpp, syncInterrupt.cpp, userLimitDigitalInputAction.cpp, userLimitStateAction.cpp, and watchdog.cpp.