IF you turned the computer Off, without letting it Shut Down, you may have damaged the operating system a little.
Doing a System Restore, to the immediately previous Restore Point, may set things to rights completely, from the corrupted WiFi drivers (I presume) to the corrupted configuration sensing and response driver (for tablet, vs. laptop/keyboard, modes.)
If you need some instructions on how to do a System Restore correctly, here is the procedure:
System Restore can be done by the following:
Start - [All] Programs - Accessories - System Tools - System Restore
and choose to Restore system to a previous [etc.], then from the calendar-like interface, choose the first restore point *before* the problem started, then do the restoring.
(Warning: it may help to first disable - temporarily, i.e. turn Off - your anti-virus utility, since they can often interfere with the Restore operation completing successfully.... before doing a System Restore.)
The computer will grind away for a while, then restart automatically, then grind away some more, and hopefully will come up with a message that the Restore operation was fully successful.
And hopefully that will cure the problem.
(PS: Do not choose to do a System Restore if you have recently installed any Microsoft software of any considerable cost. Its installation may be reversed, and you may lose money that way. Let me know if you think that's the case, and I will advise you further as to what to do.)