If you are using your keyboard and nothing shows up on screen detach and reattach the keyboard from the surface.
If the problem persists, use the on-screen keyboard by clicking on the keyboard icon to the left of the clock on the taskbar.
Also, shut down the surface completely by holding down the power button until it says "Slide to shut-down". This will minimize the prevalence of system glitches.