You can connect a keyboard, mouse, or even a joystick or other input device to your phone via USB or Bluetooth and use it just as you would with a PC.
You may need an adapter to connect the keyboard or other device to your phone's USB port. To connect more than one USB device at a time, use a powered USB hub to reduce the drain on your phone's battery.
You pair and connect Bluetooth input devices to your phone in the same way as any other Bluetooth device.
Keyboards
In addition to entering text, you can use your keyboard to navigate your phone's features:
Mice
When you connect a mouse to your phone and move the mouse, an arrow-shaped cursor appears, just as on a computer:
Other input devices
You can connect joysticks, gamepads, and other input devices to your phone. If they work without special drivers or adapters on your PC, they will likely work with your phone. However, games and other apps must be designed to support any special features of an input device, such as dedicated buttons or other controls, to take full advantage of them.