What to do when your mouse or keyboard stops working?

Getting a working mouse or keyboard is the best option but what if you need to do something urgently. Lets take a look at both the cases one by one. We are not going to use any third party application but just windows built in tools to achieve the goal.