The FIRST thing I would do would be to change the batteries in the keyboard (usually 2 AAA size). I bet that more often than not, your keyboard will spring back to life. All of the other lengthy and complicated measures are probably completely unnecessary and you will be up and running and back to work much faster. The old adage (Keep It Simple S—–d (KISS) strikes again.
All the best to everyone. Take care.