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
Augmented reality (AR), also known as mixed reality (MR), is a technology that overlays real-time 3D computer graphics, 3D-rendered computer graphics onto a portion of the real world through a display, such as a handheld device or head-mounted ...
.
Types
On a desktop computer, a virtual keyboard might provide an alternative input mechanism for users with
disabilities
Disability is the experience of any condition that makes it more difficult for a person to do certain activities or have equitable access within a given society. Disabilities may be cognitive, developmental, intellectual, mental, physica ...
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 are lacking 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
JavaScript (), often abbreviated as JS, is a programming language and core technology of the World Wide Web, alongside HTML and CSS. Ninety-nine percent of websites use JavaScript on the client side for webpage behavior.
Web browsers have ...
virtual keyboards have been created on web browsers, allowing users to type their own languages on foreign keyboards.
Multitouch
In computing, multi-touch is technology that enables a surface (a touchpad or touchscreen) to recognize the presence of more than one point of contact with the surface at the same time. The origins of multitouch began at CERN, MIT, University o ...
screens allow the creation of virtual
chorded keyboards for
tablet computers
A tablet computer, commonly shortened to tablet, is a mobile device, typically with a mobile operating system and touchscreen display processing circuitry, and a rechargeable battery in a single, thin and flat package. Tablets, being 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
A personal digital assistant (PDA) is a multi-purpose mobile device which functions as a personal information manager. Following a boom in the 1990s and 2000s, PDAs were mostly displaced by the widespread adoption of more highly capable smar ...
(PDA),
tablet computer
A tablet computer, commonly shortened to tablet, is a mobile device, typically with a mobile operating system and touchscreen display processing circuitry, and a rechargeable battery in a single, thin and flat package. Tablets, being computers ...
, or
touchscreen
A touchscreen (or touch screen) is a type of electronic visual display, display that can detect touch input from a user. It consists of both an input device (a touch panel) and an output device (a visual display). The touch panel is typically l ...
-equipped
mobile phone
A mobile phone or cell phone is a portable telephone that allows users to make and receive calls over a radio frequency link while moving within a designated telephone service area, unlike fixed-location phones ( landline phones). This rad ...
. 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 enter 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 vitural keyboards had usability constraints.
First iPhone
When
Apple
An apple is a round, edible fruit produced by an apple tree (''Malus'' spp.). Fruit trees of the orchard or domestic apple (''Malus domestica''), the most widely grown in the genus, are agriculture, cultivated worldwide. The tree originated ...
presented the
iPhone
The iPhone is a line of smartphones developed and marketed by Apple that run iOS, the company's own mobile operating system. The first-generation iPhone was announced by then–Apple CEO and co-founder Steve Jobs on January 9, 2007, at ...
in 2007, not including a physical keyboard was seen as a detriment. However, Apple brought the
multi-touch
In computing, multi-touch is technology that enables a surface (a touchpad or touchscreen) to recognize the presence of more than one somatosensory system, point of contact with the surface at the same time. The origins of multitouch began at CE ...
technology into the device, overcoming the usability problems of PDAs.
Current implementation and use
The most common mobile operating systems,
Android and
iOS
Ios, Io or Nio (, ; ; locally Nios, Νιός) is a Greek island in the Cyclades group in the Aegean Sea. Ios is a hilly island with cliffs down to the sea on most sides. It is situated halfway between Naxos and Santorini. It is about long an ...
, 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
Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
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
An apple is a round, edible fruit produced by an apple tree (''Malus'' spp.). Fruit trees of the orchard or domestic apple (''Malus domestica''), the most widely grown in the genus, are agriculture, cultivated worldwide. The tree originated ...
's
iOS
Ios, Io or Nio (, ; ; locally Nios, Νιός) is a Greek island in the Cyclades group in the Aegean Sea. Ios is a hilly island with cliffs down to the sea on most sides. It is situated halfway between Naxos and Santorini. It is about long an ...
operating system allows the development of custom keyboards, however no access is given to the
dictionary
A dictionary is a listing of lexemes from the lexicon of one or more specific languages, often arranged Alphabetical order, alphabetically (or by Semitic root, consonantal root for Semitic languages or radical-and-stroke sorting, radical an ...
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
Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
provides the virtual keyboard through
Common Text Framework service.
Word suggestions
Diverse scientific papers at the beginning of the 2000s showed even before the invention of smartphones, that
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
Google LLC (, ) is an American multinational corporation and technology company focusing on online advertising, search engine technology, cloud computing, computer software, quantum computing, e-commerce, consumer electronics, and artificial ...
implemented the predicting 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
iOS 8 is the eighth major release of the iOS mobile operating system developed by Apple Inc., being the successor to iOS 7. It was announced at the company's Worldwide Developers Conference on June 2, 2014, and was released on September 17 ...
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
Hysteresis is the dependence of the state of a system on its history. For example, a magnet may have more than one possible magnetic moment in a given magnetic field, depending on how the field changed in the past. Plots of a single component of ...
, 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.
smartphone
A smartphone is a mobile phone with advanced computing capabilities. It typically has a touchscreen interface, allowing users to access a wide range of applications and services, such as web browsing, email, and social media, as well as multi ...
s and devices that create virtual worlds, for example,
virtual reality
Virtual reality (VR) is a Simulation, simulated experience that employs 3D near-eye displays and pose tracking to give the user an immersive feel of a virtual world. Applications of virtual reality include entertainment (particularly video gam ...
or
augmented reality
Augmented reality (AR), also known as mixed reality (MR), is a technology that overlays real-time 3D computer graphics, 3D-rendered computer graphics onto a portion of the real world through a display, such as a handheld device or head-mounted ...
glasses, need to provide text input possibilities.
Optical virtual keyboard
An
optical
Optics is the branch of physics that studies the behaviour and properties of light, including its interactions with matter and the construction of instruments that use or detect it. Optics usually describes the behaviour of visible, ultravio ...
virtual keyboard was invented and patented by
IBM
International Business Machines Corporation (using the trademark IBM), nicknamed Big Blue, is an American Multinational corporation, multinational technology company headquartered in Armonk, New York, and present in over 175 countries. It is ...
engineers in 1992.
It optically detects and analyses human hand and finger motions and interprets them as operations on a physically non-existent input device, such as a surface having painted keys. This allows it to emulate unlimited types of manually operated input devices including mouse or keyboard. All mechanical input units can be replaced by such virtual devices, optimized for the current application and for the user's physiology maintaining the speed, simplicity, and unambiguity of manual data input.
One example of this technology is the "Selfie Type" - a keyboard technology for mobile phones made by
Samsung Electronics
Samsung Electronics Co., Ltd. (SEC; stylized as SΛMSUNG; ) is a South Korean multinational major appliance and consumer electronics corporation founded on 13 January 1969 and headquartered in Yeongtong District, Suwon, South Korea. It is curr ...
. It was intended to use the
front-facing camera (the selfie camera) to track the user's fingers, enabling the user to type on an "invisible keyboard" on a table or another surface in front of the phone. It was introduced at the
Consumer Electronics Show
CES (; formerly an initialism for Consumer Electronics Show) is an annual trade show organized by the Consumer Technology Association (CTA). Held in January at the Las Vegas Convention Center in Winchester, Nevada, United States, the event typi ...
2020 and was expected to be launched in the same year but never did.
Augmented reality keyboards
The basic idea of a virtual keyboard in an
augmented reality
Augmented reality (AR), also known as mixed reality (MR), is a technology that overlays real-time 3D computer graphics, 3D-rendered computer graphics onto a portion of the real world through a display, such as a handheld device or head-mounted ...
environment is to give the user a text input possibility. A common approach is to render a flat keyboard into augmented reality, e.g. using the
Unity TouchScreenKeyboard. The
Microsoft
Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
HoloLens enables the user to point at letters on the keyboard by moving his head.
Another approach was researched by the Korean KJIST U-VR Lab in 2003. Their suggestion was to use wearables to track the finger motion to replace a physical keyboard with virtual ones. They also tried to give audiovisual feedback to the user, when a key got hit. The basic idea was to give the user a more natural way to enter text, based on what he is used to.
The Magic Leap 1 from
Magic Leap
Magic Leap, Inc. is an American technology company that released a head-mounted augmented reality display, called ''Magic Leap One'', which superimposes 3D computer-generated imagery over real world objects. It is attempting to construct a lig ...
implements a virtual keyboard with augmented reality.
Virtual reality keyboards
The challenge, as in
augmented reality
Augmented reality (AR), also known as mixed reality (MR), is a technology that overlays real-time 3D computer graphics, 3D-rendered computer graphics onto a portion of the real world through a display, such as a handheld device or head-mounted ...
, is to give the user the possibility to enter text in a completely virtual environment. Most augmented reality systems don't
track the hands of the user. So many available systems provide the possibility to point at letters.
In September 2016,
Google
Google LLC (, ) is an American multinational corporation and technology company focusing on online advertising, search engine technology, cloud computing, computer software, quantum computing, e-commerce, consumer electronics, and artificial ...
released a virtual keyboard app for their
Daydream
Daydreaming is a stream of consciousness that detaches from current external tasks when one's attention becomes focused on a more personal and internal direction.
Various names of this phenomenon exist, including mind-wandering, fantasies, a ...
virtual reality headset. To enter text, the user points at letters using the controller.
In February 2017,
Logitech presented an experimental approach to bring their keyboards into the virtual environment. The
Vive
Vive may refer to:
*Vive, viva, and vivat, a Romance language expression
* ''Vive'' (José José album), 1974
* ''Vive'' (Lucía Méndez album), 2004
*Vive (a cappella group)
Vive was a six-part a cappella group from England, United Kingdom.
...
Tracker and the Logitech G gaming keyboard track finger movement without wearing a glove. Fifty kits were sent to exclusive developers, enabling them, in combination with Logitech's BRIDGE developers kit, to test and experiment with the new technology.
Security considerations
Virtual keyboards may be used in some cases to reduce the risk of
keystroke logging
Keystroke logging, often referred to as keylogging or keyboard capturing, is the action of recording (logging) the keys struck on a keyboard, typically covertly, so that a person using the keyboard is unaware that their actions are being monitore ...
. For example,
Westpac
Westpac Banking Corporation, also known as Westpac, is an Australian multinational banking and financial services company headquartered at Westpac Place in Sydney.
Established in 1817 as the Bank of New South Wales, it acquired the Commerc ...
's online banking service uses a virtual keyboard for password entry, as does
TreasuryDirect
TreasuryDirect is a website run by the Bureau of the Fiscal Service under the United States Department of the Treasury that allows US individual investors to purchase United States Treasury security, treasury securities, such as savings bonds ...
(see picture). It is more difficult for
malware
Malware (a portmanteau of ''malicious software'')Tahir, R. (2018)A study on malware and malware detection techniques . ''International Journal of Education and Management Engineering'', ''8''(2), 20. is any software intentionally designed to caus ...
to monitor the display and mouse to obtain the data entered via the virtual keyboard than it is to monitor real keystrokes. However, it is possible, for example by recording
screenshots at regular intervals or upon each mouse click.
Virtual keyboards may prevent
keystroke inference attacks but can also act as keyloggers through
telemetry
Telemetry is the in situ collection of measurements or other data at remote points and their automatic transmission to receiving equipment (telecommunication) for monitoring. The word is derived from the Greek roots ''tele'', 'far off', an ...
and can leak sensitive information through text suggestions.
The use of an on-screen keyboard on which the user "types" with mouse clicks can increase the risk of password disclosure by
shoulder surfing, because:
* An observer can typically watch the screen more easily (and less suspiciously) than the keyboard, and see which characters the mouse moves to.
* Some implementations of the on-screen keyboard may give visual feedback of the "key" clicked, e.g. by changing its color briefly. This makes it much easier for an observer to read the data from the screen. In the worst case, the implementation may leave the
focus
Focus (: foci or focuses) may refer to:
Arts
* Focus or Focus Festival, former name of the Adelaide Fringe arts festival in East Australia Film
*Focus (2001 film), ''Focus'' (2001 film), a 2001 film based on the Arthur Miller novel
*Focus (2015 ...
on the most recently clicked "key" until the next virtual key is clicked, thus allowing the observer time to read each character even after the mouse starts moving to the next character.
* A user may not be able to "point and click" as fast as they could type on a keyboard, thus making it easier for the observer.
See also
*
Caldera SoftKeyboards (1997)
*
Ease of Access
*
Finger Touching Cell Phone
*
Input method
An input method (or input method editor, commonly abbreviated IME) is an operating system component or program that enables users to generate characters not natively available on their input devices by using sequences of characters (or mouse oper ...
*
Mouse keys
*
Multi-touch
In computing, multi-touch is technology that enables a surface (a touchpad or touchscreen) to recognize the presence of more than one somatosensory system, point of contact with the surface at the same time. The origins of multitouch began at CE ...
Notes
External links
{{Commons category, Virtual keyboards
Assistive technology
Computer keyboard types
Pointing-device text input
Touch user interfaces