Optical switches: how an optical keyboard senses a key press
An optical switch registers a key press when the stem interrupts or changes a beam of light read by a sensor on the circuit board, so no metal contact closes. Razer, Corsair, Gateron, Logitech, A4Tech and Flaretech all make them. Most designs fire at one fixed point, shallow ones around 1.0 to 1.5 mm, and they fit only boards built for them.
on this page
Optical switches replace the metal contact of a mechanical switch with a beam of light. A sensor on the circuit board watches the light, and the stem changes what the sensor sees as the key goes down. Razer, Corsair, Gateron, Logitech, A4Tech and Flaretech all build optical switches, and each design ties you to the boards its maker supports. For the other sensing families see the overview of keyboard switches.
How do optical switches work?
An optical switch actuates when the stem of the switch changes a light beam that a sensor reads. Razer's page for its optical switch says actuation happens through a light beam that passes through the stem when you press. Corsair says OPX switches use a beam of light, and a key actuates when its movement interrupts the beam. Wooting's explanation of Flaretech adds that the switch uses a sensor and light to read the position of the keypress rather than relying on conductivity.
The parts differ by design. Wooting says the LED sits on the PCB, not in the switch, and its light reaches the switch through a light tunnel on top. For the A4Tech Light Strike line, the petitdoigt switch database notes a crystal prism that spreads light from the LED on the PCB, and each switch carries its own stabilizer bar. The switch itself holds no electronics in these designs, which is why a Flaretech switch cannot turn an ordinary keyboard into an optical one.
Without a contact there is nothing to bounce. Razer says there is no contact bounce with light actuation, so the signal goes out as soon as the key actuates. Wooting's comparison table lists a debounce of 0.03 ms for Flaretech against 5 ms for Cherry MX, with a warning that its own data is subject to errors.
Who makes optical switches?
Several brands sell them, each with its own mount. Figures are the maker's own, in the maker's unit.
| Switch | Type | Actuation | Force | Total travel | Rated life |
|---|---|---|---|---|---|
| Razer Linear Optical | Linear | 1.2 mm | 45 g | Not listed | 100 million |
| Razer Clicky Optical | Clicky | 1.5 mm | 45 g | Not listed | 100 million |
| Corsair OPX | Linear | 1.0 mm | 45 g | 3.2 mm | 150 million |
| Corsair OPX Low-Profile | Linear | 1.5 mm | 45 g | 2.5 mm | 80 million |
| Gateron KS-15 Optical Yellow | Linear | 1.0 mm | 35 gf | 3.2 mm | Not listed |
| Gateron KS-15 Optical Red | Linear | 2.0 mm | 45 gf | 4.0 mm | Not listed |
| A4Tech LK Libra Orange | Clicky | 1.5 mm | 40 gf | 3.0 mm | 100 million |
| Flaretech Linear55 Red (Adomax) | Linear | 1.5 to 3.6 mm on analog boards | 55 gf | 4.0 mm | 100 million |
| ASUS ROG RX Red | Linear | 1.5 mm | 45 gf | Not listed | 100 million |
The Gateron range includes yellow, white, red, silver, black, brown and blue variants in its KS-15 and KS-22 families, so linear, tactile and clicky options all exist. Logitech's GX Optical Linear and Tactile switches ship in the PRO X 60, and the Logitech page lists no force or travel figures. SteelSeries' older OptiPoint optical switches list an actuation between 1.0 and 1.5 mm and 35 to 55 gf depending on colour, and Turtle Beach's Titan II Optical Red appears in the Vulcan II line, rated at 200 million keystrokes in the petitdoigt switch database.
The petitdoigt switch database records 42 optical switches: 26 linear, 11 clicky, 4 tactile and 1 silent linear. The guide to linear, tactile and clicky switches covers how those types differ.
How do measured forces compare with the claims?
A4Tech lists the LK Libra Orange at 40 gf, and TechPowerUp's review of the Bloody B945 measured about 49 gf average actuation over 20 switches. One switch in one review shows that listed and measured forces can differ and says nothing about how often. The guide to switch specs explains how makers quote force and why figures vary.
Lifespan figures are the makers' ratings. Razer compares its 100 million clicks with an industry standard of 50 million keystrokes and says optical actuation with less physical contact should eliminate switch degradation almost completely. The sources include no durability test.
Can optical switches go in a hot-swap keyboard?
Only in a board designed for the same optical switch. The sensor and the light source live on the PCB, so the board and the switch have to agree on geometry and light path. Razer's optical switches fit only Razer optical boards, per the petitdoigt switch database. Gateron's switches fit only keyboards built for Gateron optical switches. Wooting warns that installing a Flaretech switch on an ordinary mechanical keyboard does not make it analog, and that analog capability comes from the keyboard's PCB sensors working with the switch. Flaretech has the same MX stem as Cherry MX per Wooting, so standard keycaps fit the stem, and its sockets are hot-swappable.
Of the 44 boards in the petitdoigt keyboard database with optical switches, 26 are not hot-swappable, 6 have another socket type, 4 list optical hot-swap, 3 take 5-pin switches, 1 is hot-swappable with no socket stated and 4 do not say. NZXT's Function 2 is an example with hot-swappable optical switches: PC Gamer called it a quiet, fairly priced full-size optical keyboard with dual actuation and hot-swappable switches, and Tom's Hardware also noted the hot-swappable optical switches. TechRadar's review of the Roccat Vulcan II Mini noted that its switches are still not hot-swappable.
The practical consequence is that the keyboard decides your switch choice. If you want to swap switch types freely, read the hot-swappable keyboard guide first and check whether the board takes standard MX-footprint switches.
What are analog optical switches?
An analog optical switch reports how far the key is down, so the actuation point can be moved in software. Razer's page says its analog optical switch can measure the exact amount of light that goes through the switch stem, giving an actuation range of 0.1 to 4.0 mm adjusted in Razer Synapse. It also lists Rapid Trigger, dual-step actuation and analog input. The Gen-2 switch is used in the Huntsman V3 Pro line, and a low-profile analog version in the Huntsman V3 Pro Low-profile Tenkeyless lists 0.1 to 2.8 mm.
Wooting's Flaretech Lens B does the same job on Wooting's own boards. The Wooting post says the switch mechanically blocks all light until 1.3 to 1.5 mm, so the usable analog range is limited, and Tom's Hardware lists the range as 1.6 to 3.6 mm. Wooting has since moved to Hall effect sensing, covered in the Hall effect switch guide, where the magnet's position replaces the light beam.
Reviewers of analog optical boards give mixed marks for feel. Tom's Hardware rated the Huntsman V3 Pro TKL 4.5/5 and said customizable actuation and Rapid Trigger Mode work well together, with good typing but a high price. TechRadar's Huntsman V3 Tenkeyless 8KHz review called the board very tweakable and said its switches give little feedback.
Are optical keyboards good for typing?
The sources hold no typing test of optical switches. PC Gamer's review of Corsair's Vanguard Air 99 Wireless, which uses OPX Low Profile switches, rated it 70/100 and focused on the price of its 99% layout.
Optical switches come in linear, tactile and clicky versions, and low-profile variants change key height and travel; see the guide to low-profile switches. The quiet switches guide covers silent designs. The trainer offers finger-coded drills in the browser, with key sounds recorded from 13 real switches that you choose from a dropdown in its settings, and makes no claim that a switch type changes how fast you learn.
Questions people ask
What is an optical keyboard?
A keyboard whose switches use light to detect a press. Razer states that its optical switch actuates when a light beam passes through the stem, and Corsair says OPX switches trigger when the key's movement interrupts a beam. No metal contact closes, so the signal arrives without contact bounce.
Are optical switches faster than mechanical switches?
Makers claim faster actuation: Razer lists 1.2 mm for its linear optical switch and Corsair 1.0 mm for OPX, against about 2.0 mm for a typical mechanical switch in Corsair's article. Those are shorter pre-travel distances. Whether you notice the difference when typing is not shown by the sources.
Can I put optical switches in a hot-swap keyboard?
Only a board made for that optical design. Razer's optical switches fit only Razer optical boards, Gateron's fit only boards built for Gateron optical switches, and Flaretech needs a Flaretech socket. In the petitdoigt keyboard database, 26 of the 44 boards with optical switches are not hot-swappable.
Do optical switches last longer?
Makers rate them higher: Razer lists 100 million keystrokes against an industry figure of 50 million, and Corsair lists 150 million for OPX. These are the makers' own ratings, and the sources opened give no independent test of them.
What is an analog optical switch?
An optical switch that reports how far the key is pressed, so the actuation point can be set in software. Razer's Gen-2 analog optical switch lists a range of 0.1 to 4.0 mm and supports Rapid Trigger. Wooting's Flaretech Lens B reads analog travel between 1.5 and 3.6 mm.
Sources
- Razer: Razer Optical Switch
- Razer: Razer Analog Optical Switch
- Razer: Razer Low-Profile Optical Switch
- Razer: Razer Low-Profile Analog Optical Switch
- Corsair: key switches compared
- Gateron: KS-15 Optical Switch Set
- Gateron: KS-22 Optical Switch Set
- Logitech G: PRO X 60 wireless keyboard
- Wooting: Flaretech, the optical keyboard switch
- Deskthority wiki: Adomax Flaretech
- Tom's Hardware: Wooting One review
- TechPowerUp: Bloody B945 review, measurements
- TechPowerUp: Bloody B945 review, switches
- SteelSeries: keyboard gaming switches
- ASUS ROG: keyboard switches
- Turtle Beach: Vulcan II Max keyboard
- Tom's Hardware: Razer Huntsman V3 Pro TKL review
- PC Gamer: NZXT Function 2 review
- Tom's Hardware: NZXT Function 2 review
- TechRadar: Roccat Vulcan II Mini review
- PC Gamer: Corsair Vanguard Air 99 Wireless review
- TechRadar: Razer Huntsman V3 Tenkeyless 8KHz review