Added Keyboard callback to the C++ engine