If you don't have a keyboard attached to your computer or if you just prefer a more modern option, you can use Ubuntu'son-screen keyboard feature to enter text. Dubbed GOK, this dynamic feature includes Direct Selection and Dwell Selection capabilities and as well as word completion.
Here's how to enable it.
Use the On-Screen Keyboard on Ubuntu
Click the Settings menu > System Settings:
Next, go to System > Universal Access:
Select the Typing tab, and then switch the On-Screen Keyboard option to ON:
Ubuntu On-Screen Keyboard Terminal Command
Alternatively, you can use a terminal command to activate the on-screen keyboard.