Fixed the rounding problems on the path tracer and made the keyboard events work properly even at superspeed