Fixing keyboard input issues with cpp targets.