Try this.
First detach your keyboard from the surface.
Then go into tablet mode... click notifications bottom right and you will see an option for tablet mode.
Then go to start - settings - systems - display.
Then set the rotation lock to on.
Attach keyboard.
See if that works.