I just repaved my SP3, and still have the same issues as OP -- screen is flipped, keyboard is not recognized.
I thought it was somehow due to having attached an SP4 dock, but may that wasn't the issue.
Right now, my expensive tablet/laptop is a brick...
After shutting down and restarting, the screen is right-side up, but the keyboard still doesn't work.
Look in Device Manager and look to see if I2C or Accelerometer is showing an exclamation mark, if so uninstall the device and then scan for Hardware changes and allow the Surface to reinstall the device.