Short answer: Yes, you can use your iPad as a keyboard for your Mac or PC laptop.

Longer answer...

Dry out the laptop first

As Xavierjazz mentioned in a comment, make sure the laptop is completely dry before you try to use it.

The only way to be sure it is completely dry is to completely dismantle the laptop, wipe up any moisture you see, and allow all the components to dry for several days.  If you do not dry it, moisture could remain in place or wick further into the laptop and cause permanent damage.  You can use a vacuum to suck air out of crevices or low-velocity airflow from a fan, but do NOT use high-velocity air such as compressed air (which can push moisture further into crevices).  Although rice is widely recommended for drying out electronics, more recent studies have debunked its ability as a desiccant.

You might need to disconnect the built-in keyboard

If the keys are indeed stuck "on" then you may need to disconnect the laptop's keyboard cable from the motherboard in order to prevent the stuck keys from affecting the input from any other keyboard you try to use.  For example, if the laptop's Shift key is stuck "on" then anything you type on a different keyboard connected to the same laptop will be affected by the Shift key.

USB keyboard or iPad as a keyboard

Once you've gotten past that hurdle, the simplest solution is to use an USB keyboard.  However, you can also use a remote desktop app such as Splashtop, a keyboard app such as Air Keyboard, or any number of other apps that you can find by searching "ipad as keyboard" in Google.

Can I connect iPad to computer so I can use iPad as a keyboard?

  （1）I get up early in order to catch a bus. 
  
  （2）I get up early because I can catch a bus.


How to ask a question according to “in order to catch a bus ” and "because I can catch  a bus"?
