ArticleslgStudy

computer science

Virtual keyboard

Virtual keyboard is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Virtual keyboard rather than just read about it. In short: A virtual keyboard is a software component that allows the input of characters without the need for physical keys. Interaction with a virtual keyboard happens mostly via a touchscreen interface, but can also take place in a different form when in virtual or augmented reality.

Virtual keyboard — main illustration
Virtual keyboard — illustration

Key takeaways

  • Virtual keyboard belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Virtual keyboard to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Virtual keyboard from memory before moving on to harder problems.

Reference excerpt

A virtual keyboard is a software component that allows the input of characters without the need for physical keys. Interaction with a virtual keyboard happens mostly via a touchscreen interface, but can also take place in a different form when in virtual or augmented reality.

Types On a desktop computer, a virtual keyboard might provide an alternative input mechanism for users with disabilities who cannot use a conventional keyboard, for multi-lingual users who switch frequently between different character sets or alphabets, which may be confusing over time, or for users who lack a traditional keyboard. Virtual keyboards may utilize the following:

Virtual keyboards with touchscreen layouts or sensors Character variants, punctuation, and other special characters accessible through a menu, key/mouse combinations, or double/triple/long presses on sensors Number pad feature to facilitate typing numbers. Optically projected keyboard layouts or similar arrangements of "keys" or sensing areas Optically detected human hand and finger motions Multiple language sets that don't require a settings change Various JavaScript virtual keyboards have been created on web browsers, allowing users to type their own languages on foreign keyboards. Multitouch screens allow the creation of virtual chorded keyboards for tablet computers, touchscreens, touchpads, and wired gloves.

Mobile devices Virtual keyboards are commonly used as an on-screen input method in devices with no physical keyboard where there is no room for one, such as a pocket computer, personal digital assistant (PDA), tablet computer, or touchscreen-equipped mobile phone. Text is commonly inputted either by tapping a virtual keyboard or finger-tracing. Virtual keyboards are also featured in emulation software for systems that have fewer buttons than a computer keyboard would have.

Historical development

PDA

The four main approaches to entering text into a PDA were: virtual keyboards operated by a stylus, external USB keyboards, handwritten keyboards, and stroke recognition. Microsoft's mobile operating system approach was to simulate a completely functional keyboard, resulting in an overloaded layout. Without support for multi-touch technology, PDA virtual keyboards had usability constraints.

First iPhone When Apple presented the iPhone in 2007, not including a physical keyboard was seen as a detriment. However, Apple brought the multi-touch technology into the device, overcoming the usability problems of PDAs.

Current implementation and use The most common mobile operating systems, Android and iOS, give the developer community the possibility to individually develop custom virtual keyboards.

Android

The Android SDK provides an "InputMethodService". This service provides a standard implementation of an input method, enabling the Android development community to implement their own keyboard layouts. The InputMethodService ships with it on Keyboard View. While the InputMethodService can be used to customize key and gesture inputs, the Keyboard Class loads an XML description of a keyboard and stores the attributes of the keys. As a result, it is possible to install different keyboard versions on an Android device, and the keyboard is only an application, most frequently downloaded among them being Gboard and SwiftKey; a simple activation over the Android settings menu is possible.

iOS

Apple's iOS operating system allows the development of custom keyboards; no access is given to the dictionary or general keyboard settings. iOS automatically switches between system and custom keyboards if the user enters text into the text input field. The UIInputViewController is the primary view controller for a custom keyboard app extension. This controller provides different methods for the implementation of a custom keyboard, such as a user interface for a custom keyboard, obtaining a supplementary lexicon or changing the primary language of a custom keyboard.

Windows Microsoft Windows provides the virtual keyboard through Common Text Framework service.

Word suggestions Diverse scientific papers at the beginning of the 2000s showed that, even before the invention of smartphones, predicting words, based on what the user is typing, assisted in increasing the typing speed. At the beginning of development of this keyboard feature, prediction was mainly based on static dictionaries. Google implemented the prediction method in 2013 in Android 4.4. This development was mainly driven by third party keyboard providers, such as SwiftKey and Swype. In 2014 Apple presented iOS 8 which includes a new predictive typing feature called Quick Type, which displays word predictions above the keyboard as the user types.

Haptic feedback Haptic feedback provides for tactile confirmation that a key has been successfully triggered i.e. the user hears and feels a "click" as a key is pressed. Utilizing hysteresis, the feel of a physical key can be emulated to an even greater degree. In this case, there is an initial "click" that is heard and felt as the virtual key is pressed down, but then as finger pressure is reduced once the key is triggered, there is a further "unclick" sound and sensation as if a physical key is respringing back to its original unclicked state. This behaviour is explained in Aleks Oniszczak & Scott Mackenzie's 2004 paper "A Comparison of Two Input Methods for Keypads on Mobile Devices" which first introduced haptic feedback with hysteresis on a virtual keyboard.

Special keyboard types Keyboards are needed in different digital areas. smartphones and devices that create virtual worlds, for example, virtual reality or augmented reality glasses, need to provide text input possibilities.

… excerpt ends here. Continue reading the full article.

Illustrations

Virtual keyboard: Typing on an iPad's virtual keyboard
Typing on an iPad's virtual keyboard
Virtual keyboard: Virtual keyboard on a Pocket PC PDA
Virtual keyboard on a Pocket PC PDA
Virtual keyboard: Android keyboard settings
Android keyboard settings
Virtual keyboard: Apple iOS UIInputViewController
Apple iOS UIInputViewController
Virtual keyboard: TreasuryDirect login screen, showing the virtual keyboard
TreasuryDirect login screen, showing the virtual keyboard

Worked examples

Example 1 — a first encounter with Virtual keyboard

Start with the simplest possible case. Write down what Virtual keyboard claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Virtual keyboard before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Virtual keyboard ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Virtual keyboard

In research
Virtual keyboard appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Virtual keyboard in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Virtual keyboard is common in secondary-school and first-year university syllabi. It links to neighbouring topics Assistive technology, Computer keyboard types, Pointing-device text input, so understanding it makes those chapters shorter.
In everyday life
Look for Virtual keyboard outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Virtual keyboard” →

How to study Virtual keyboard in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Virtual keyboard means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Virtual keyboard out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Virtual keyboard in simple terms?

A virtual keyboard is a software component that allows the input of characters without the need for physical keys. Interaction with a virtual keyboard happens mostly via a touchscreen interface, but can also take place in a different form when in virtual or augmented reality.

Why does Virtual keyboard matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Virtual keyboard?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Virtual keyboard.

Tags

  • Assistive technology
  • Computer keyboard types
  • Pointing-device text input
  • Touch user interfaces
  • Virtual keyboards

Keep exploring