Swiclick

How to Choose Tact Switch Actuator Height and Design the Keycap Gap

Short answer: Choose tact switch actuator height from the full PCB-to-panel stack, not from the catalog. Pick the standard height that puts the keycap plunger a small, positive distance above the switch at rest, check that gap with a worst-case tolerance stack, and provide a housing stop or another mechanical load path when hard presses or impact can be transferred through the keycap. On a short travel 6 × 6 mm switch, the combined enclosure tolerance stack can become larger than the switch travel itself, so this check can determine whether the button works across production.

A tact switch can match its datasheet perfectly and still fail once it sits behind a plastic button. Some units feel dead. Some are pressed all the time. Some rattle, and some stop working after the product is dropped.

In enclosure integration problems, the cause is often the mechanical stack rather than the switch contact alone. The trouble usually lies in the space between the switch and the user’s finger: the keycap, the housing, the PCB mounting and the tolerances of each part.

This guide covers that space. If you are still deciding how heavy or crisp the press should feel, start with our guide to tactile switch operating force and travel, then come back here to make the switch fit the enclosure.

Why the Enclosure Decides Whether the Button Works

The numbers explain the problem.

Omron’s B3F datasheet, a common reference for 6 × 6 mm through-hole tact switches, lists a pretravel of 0.25 mm +0.2/−0.1 mm and a plunger height tolerance of ±0.2 mm. The height tolerance band of 0.4 mm is already larger than the nominal travel.

Now add the keycap, the housing and the PCB position. Each plastic and assembly dimension adds its own tolerance, and the accumulated stack can easily become comparable to the switch travel.

That is why a first prototype often works and the pilot build does not. The prototype sat near nominal. The pilot build explored the tolerance range.

Map the Mechanical Stack Before You Pick a Height

List every dimension between the PCB and the outside of the product. Use one datum, usually the top surface of the PCB, and measure everything from it.

  • switch body and actuator height above the PCB
  • how the switch seats on the PCB such as SMD solder fillet, through-hole standoff or float
  • PCB position in the housing such as bosses, ribs and screws
  • housing feature that retains the keycap
  • keycap flange to plunger tip length
  • front panel or case thickness
  • any membrane, foam, gasket or silicone layer
  • PCB and housing deflection under the user’s press

Write the nominal value and tolerance for each one. This list becomes your tolerance stack later.

Tact switch actuator height and keycap rest gap in a PCB and front panel stack

How to Choose the Actuator Height

Tact switches come in discrete heights. The Omron B3F 6 × 6 mm range, for example, offers 4.3, 5.0, 7.0 and 9.5 mm flat plungers plus a 7.3 mm projected plunger. Same Sky and E-Switch catalogs span actuator heights from well under 1 mm to 17 mm.

Because heights come in steps, the switch sets the coarse position and the keycap sets the fine position.

Choose a taller actuator when

  • the PCB sits far below the panel and a long keycap plunger would be fragile or bend
  • the button must pass through a thick panel or bezel
  • you want to use a simple cap that fits directly on a projected plunger

Choose a lower actuator when

  • overall product thickness is limited
  • the keycap already has a long internal boss or rib
  • the PCB sits just below the case wall
  • you want the shortest possible load path so the tolerance stack stays small

For example, a through-hole 6 × 6 mm tact switch with multiple height options suits a panel that sits well above the board. A low-profile SMD switch suits a thin handheld where the case wall is close to the PCB. Assembly process matters as well. See through-hole vs SMD switches for how mounting style affects mechanical strength and soldering.

Tune the keycap before changing the switch

Changing a switch height usually means a new part number and new qualification. If the tooling is designed steel safe around the plunger feature, small dimensional adjustments to the keycap are often easier than changing to a different switch height. The initial tool can leave the plunger slightly short, allowing material to be removed from the tool later to increase the molded plunger length after first article measurements.

Agree on this approach with the mold maker before the tool is cut, because how easily a feature can be adjusted depends on the tool construction.

Rest Gap or Preload Must Be a Deliberate Choice

At rest, the keycap either floats a small distance above the switch, which is a rest gap, or presses lightly on it, which is preload. Both are valid. The switch type decides which one is safe.

Short-stroke metal dome switches typically use a controlled rest gap

Many common 6 × 6 mm tact switches use short stroke mechanisms. Alps Alpine classifies short stroke as travel up to 0.3 mm and notes that these switches have essentially no additional travel after the contact closes.

With so little travel, uncontrolled preload is risky. If the keycap pushes the plunger down by more than the minimum pretravel, the contact can close at rest and the product sees a button that is always pressed. Aim for a small positive gap across the full tolerance range.

Middle-stroke rubber-stem switches can use preload as a feature

Alps Alpine’s middle-stroke switches from 0.3 to 0.9 mm travel put a rubber stem above the metal dome. Alps describes preloading these switches with the keytop wedged in place to remove play between switch, keytop and housing, which stops rattle under vibration. The rubber also adds over-travel after the click.

If your product vibrates, or if the tolerance stack is too large for a short-stroke switch, a longer-travel or rubber-actuator switch is often the cleaner fix. Swiclick’s sealed rubber-button SMD tact switch KAN6247-0343M1 is one example, with 0.4 mm travel and a silicone actuator.

Short-stroke and middle-stroke tact switch keycap preload comparison

Worked Tolerance Stack That Looks Fine on Paper

The values below are illustrative and show how several reasonable component and assembly tolerances can accumulate.

Contributor Tolerance
Switch height above PCB ±0.20 mm
Switch seating on PCB ±0.05 mm
PCB seating on housing bosses ±0.10 mm
Housing boss to keycap retention ledge ±0.10 mm
Keycap flange to plunger tip ±0.05 mm
Worst-case total ±0.50 mm
Statistical total root sum square ±0.26 mm
Tact switch keycap gap tolerance stack compared with switch pretravel

The designer sets a nominal rest gap of 0.20 mm. The switch pretravel is 0.25 mm +0.2/−0.1 mm, so it ranges from 0.15 to 0.45 mm.

Minimum gap case. The gap becomes −0.30 mm, which means 0.30 mm of preload. That exceeds the 0.15 mm minimum pretravel. Some units will close the contact without anyone touching the button.

Maximum gap case. The gap becomes 0.70 mm. With maximum pretravel, the keycap must move 1.15 mm before the switch clicks. If the housing stop limits keycap travel to 0.8 mm, some units will never actuate.

Statistical case. With root-sum-square tolerancing, the gap runs from about −0.06 to +0.46 mm, and keycap travel to actuation reaches about 0.9 mm. Statistical tolerancing can help estimate normal production spread, but it should not replace worst case checks for preload, actuation and mechanical stop position.

The nominal design is reasonable. The tolerance range is what breaks it.

What to Do When the Stack Is Larger Than the Travel

You have five practical options. Most designs use two or three together.

  1. Shorten the tolerance chain. Locate the PCB and the keycap retention from the same housing part and the same datum. In the example, removing one housing contributor and tightening another brings the worst case from ±0.50 mm to about ±0.35 mm.
  2. Control the switch height. In this example, switch height is the largest single contributor. Ask the supplier to treat actuator height as a critical dimension with a defined tolerance and lot inspection.
  3. Add compliance. A silicone keypad, rubber actuator or middle-stroke switch absorbs variation that a rigid keycap cannot.
  4. Use a flexible keycap arm. A cantilever or living-hinge keycap molded into the case gives a predictable rest position and return force, and it can often be tuned by adjusting the tool.
  5. Measure and sort. For low volumes, shims or selective assembly work, but they add cost at every build.

Use a Housing Stop to Keep Excess Load Off the Switch

A tact switch is a signal device, not a mechanical end stop.

Datasheets list stop or stopper strength, for example 50 N for 3 s on a Schurter 6 × 6 series. Stopper strength is a static survival limit, not a design load. Impact loads from hard presses or drops can greatly exceed the published static stopper strength.

Design the load path so the housing carries the force.

  • Alps recommends that the keytop surface sinks below the outer case surface when pressed, or that a stopper is added on the product side.
  • Place the stop so the switch actuates first and the stop engages shortly after, across the full tolerance range.
  • Keep the stop close to the plunger axis so a press on the edge of a large keycap still lands on the stop.
Tact switch keycap with housing stop and guide ribs

Large Off-Center and Side Keys

Keycaps larger than the switch act as levers. A press at the edge rotates the keycap and pushes the plunger off-center.

  • One Alps Alpine switch specification allows up to 0.4 mm of center misalignment, but this value is model specific.
  • Add guide ribs or a sleeve so the keycap moves straight rather than rocking.
  • For long keys, use two switches, a pivot or a stiffening rib rather than relying on one switch under the center.
  • For side buttons, check the PCB edge distance and the position of the right-angle switch relative to the case wall.

Check Return Force Rattle and PCB Support

Return

The switch dome pushes the keycap back up. That force is small. Omron’s B3F lists a minimum releasing force of 0.2 N for its 0.98 N models. If the combined friction from the keycap guide, seal or membrane approaches the switch’s available return force, the button can feel sticky or fail to return. Test return at low temperature, where plastics and elastomers stiffen.

Rattle

A rest gap lets the keycap move. In a vibrating product such as a vehicle accessory or power tool, that movement becomes noise. Use a light preload on a switch designed for it, a soft element around the keycap, or tighter guide clearances.

PCB support

Alps specifications ask designers to mount switches where the PCB does not flex. A thin board spanning between distant screws bends under a firm press, which changes the gap and loads the solder joints. Put a boss or rib directly behind the switch area.

Where Operating Force Fits In

Force still matters, but decide it after the mechanics are under control. Two points connect directly to actuator height and keycap design.

The keycap changes the force the user feels. Leverage, friction and preload all shift the perceived press. Always judge force with the real keycap.

Check durability for each force option. In the Omron B3F family, the higher force variants carry lower published durability ratings, from 1,000,000 operations at 0.98 N to 300,000 at 1.47 N and 100,000 at 2.55 N for the B3F-1000 series. That relationship should not be assumed for every switch construction, so compare the actual durability rating of each candidate rather than using operating force alone.

For force and feel selection, see tactile switch operating force and travel and why two tactile switches with the same rating feel different.

Validation Checklist Before Tooling Release

  • Build units at both ends of the tolerance stack, not only nominal parts.
  • Confirm no unit is actuated at rest and every unit actuates through the available keycap travel.
  • Press the edges and corners of each keycap, not only the center.
  • Test return at the lowest and highest operating temperatures.
  • Run a drop test on the button face and recheck feel and function.
  • Vibrate the assembly and listen for rattle.
  • Measure actuator height and pretravel on samples from more than one lot.

What to Send a Switch Supplier

A section view is worth more than any list. Include the PCB, switch outline, keycap and housing with tolerances. Add the target force range, available keycap travel, operating temperature, sealing needs, cycle life and annual volume.

Swiclick builds tact switches in 100, 160 and 260 gf standard forces with multiple actuator heights, and tools domes, plungers and caps in-house. If a standard height does not fit your stack, our engineers can review the section view and advise whether a standard part, a modified plunger or a custom switch is the shortest path. Free samples of 1 to 50 pieces ship in four working days.

FAQ

How do I choose tact switch actuator height?

Measure the distance from the PCB surface to the underside of the keycap plunger at rest, then pick the standard switch height that leaves a small positive gap. Confirm the gap with a worst-case tolerance stack that includes switch height, PCB position, housing and keycap tolerances.

How much gap should there be between a keycap and a tact switch?

There is no universal gap value. Derive it from the switch pretravel, actuator height tolerance, PCB position, housing tolerance and keycap tolerance. The goal is to keep the minimum gap from unintentionally preloading the switch while ensuring the maximum gap still allows reliable actuation within the available keycap travel and before any mechanical stop if one is used.

Should a keycap preload a tact switch?

Only if the switch is designed for it. Short-stroke metal dome switches have very little travel, so preload can close the contact at rest. Middle-stroke rubber-stem switches can be preloaded on purpose to stop rattle.

Why does my button work on the prototype but not in production?

Prototypes often sit near nominal dimensions. Production parts cover the full tolerance range, and on a 6 × 6 mm switch the combined tolerances can exceed the switch travel. Check the stack at both extremes.

Can a taller actuator fix a button that does not reach the switch?

Sometimes, but it can also create preload on other units. Recalculate the full stack first. If the keycap tool was designed steel safe around the plunger, adjusting the plunger length is often faster than changing the switch.

Does a tact switch need a mechanical stop?

A separate housing stop is strongly recommended when an external keycap can transmit hard presses, side loads or drop impact into the switch. In lightly loaded internal controls, the requirement depends on the switch construction and enclosure design.

Final Check

Before you release the enclosure tooling, confirm that no switch is pressed at rest, every switch actuates through the full tolerance range, and any required mechanical stop or load path protects the switch from excessive user force. If all three are true, the actuator height and keycap are working as one system.

Leave a Reply

Your email address will not be published. Required fields are marked *