A physical device with buttons that allow characters to be entered
The keyboard is a means of interacting with a device, whether it be using a combination of keys to execute an action (see shortcuts) or typing to produce sentences.
For questions specifically about the iPad keyboard use smart-keyboard and for the Mac keyboard use magic-keyboard.