Keyboard magnetic shaft and keyboard

By placing the magnet in the inner cavity of the insert section within the keyboard magnetic shaft and ensuring the coaxiality of the outer button with the clearance hole and sliding groove, the problems of loose magnets and unsmooth pressing feel are solved, reducing design and production costs and minimizing the propagation loss of keystrokes.

CN224154206UActive Publication Date: 2026-04-21HUIZHOU TRANTEK ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
HUIZHOU TRANTEK ELECTRONICS
Filing Date
2025-04-16
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

Existing keyboard magnetic switches are prone to magnet loosening or falling off during use, and their high design precision requirements result in an unsmooth pressing feel and significant loss of keystroke sound transmission.

Method used

Design a keyboard magnetic shaft with a magnet located in the inner cavity of the insert section. The outer button can slide up and down through the clearance hole and the sliding groove to ensure the coaxiality of the outer button with the clearance hole and the sliding groove. The coaxiality of the magnet with the Hall sensor is transmitted through a medium to transmit the striking sound.

Benefits of technology

This prevents magnets from loosening or falling off, reduces design and production costs, and improves the smoothness of pressing and the propagation efficiency of the striking sound.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224154206U_ABST
    Figure CN224154206U_ABST
Patent Text Reader

Abstract

The keyboard magnetic shaft comprises a shell, a button, a magnet and a spring, the shell comprises an upper cover and a base which are connected, the upper cover is provided with an avoiding hole, the base is provided with a sliding groove, the button comprises an outer button piece and an inner button piece which are split, and the inner button piece is used for being connected with a keycap. The outer button piece is provided with a mounting groove and an integrally-formed cylinder inserting part, the mounting groove and the cylinder inserting part are arranged up and down, the inner button piece is arranged in the mounting groove, the outer button piece can penetrate through the receding hole in an up-down sliding mode, the cylinder inserting part can penetrate through the sliding groove in an up-down sliding mode, and the bottom of the cylinder inserting part is provided with a collision part used for colliding with the groove bottom wall of the sliding groove; the magnet is arranged in an inner cavity of the insertion cylinder part, and the spring is arranged between the base and the outer button piece so that the outer button piece can move upwards to be reset. Through the above structure, the problem that the conduction stability is affected by collision heating of the magnet can be avoided, the design cost can be reduced, the production cost can be reduced, and the propagation loss of generated knocking sound can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of keyboard technology, and in particular to a keyboard magnetic shaft and a keyboard. Background Technology

[0002] A magnetic keyboard switch (hereinafter referred to as a magnetic switch) is a type of keyboard switch based on Hall effect technology. It triggers a signal through changes in a magnetic field. Specifically, the button on the magnetic switch has a magnet. When the user presses the keycap, causing the button connected to the keycap to move down, the position of the magnet changes. This causes a Hall sensor on the keyboard to detect the change in magnetic field strength, which is then converted into an electrical signal to trigger a response. In existing technologies, referring to... Figure 8 In existing magnetic shafts, the magnet 300 is mounted from bottom to top in the connecting groove S2 at the bottom of the button 200. When the user presses the keycap, causing the button 200 connected to the keycap to move downwards, the magnet 300 moves downwards, generating a Hall effect and colliding with the housing 100 to produce a striking sound, allowing the user to confirm that the keycap has been triggered. However, the inventors, in their research on the above structure, discovered that with prolonged use and increased number of presses, the existing magnetic shaft is prone to problems such as the magnet 300 becoming loose or even falling out of the connecting groove S2 at the bottom of the button 200.

[0003] In response, the inventor designed a magnetic shaft, referring to... Figure 9 The magnetic shaft button 200 is designed with a detachable upper button 230 and a lower button 240, allowing the magnet 300 to be mounted from top to bottom onto the insert portion 212 of the lower button 240. When the user presses the keycap, causing the button 200 connected to the keycap to move downwards, the lower button 240, i.e., the insert portion 212, replaces the magnet 300 in colliding with the housing 100 to produce a knocking sound, thus preventing the magnet 300 from loosening or even falling off. However, the inventors discovered through actual production that:

[0004] 1. The structure of the above design needs to ensure that the coaxiality of the upper button 230 and the clearance hole 111 of the housing 100, and the coaxiality of the insert portion 212 of the lower button 240 and the sliding groove 121 of the housing 100 are both within a preset range, so as to ensure the smoothness of the button 200. In addition, if the coaxiality of the upper button 230 and the lower button 240 cannot be guaranteed after assembly, the upper button 230 will abut against the wall of the clearance hole 111 in advance, or the insert portion 212 of the lower button 240 will abut against the side wall of the sliding groove 121 in advance. This will cause the user to experience a stuck pressing feel due to the resistance from the wall of the clearance hole 111 or the side wall of the sliding groove 121 when pressing. Moreover, if the coaxiality cannot be guaranteed, the coaxiality of the magnet 300 and the Hall sensor on the keyboard will also be affected, which will affect the accuracy of the magnetic axis. However, ensuring that the coaxiality of the upper button 230 and the clearance hole 111 of the housing 100, and the coaxiality of the insert portion 212 of the lower button 240 and the sliding groove 121 of the housing 100 are both within the preset range requires high design precision and is difficult to design, which will affect the design cost and thus the production cost.

[0005] 2. The striking sound generated by the structure designed above needs to be transmitted through two media, the lower button 240 and the upper button 230, in sequence. However, there will be a gap between the lower button 240 and the upper button 230, which will cause a significant loss in the transmission of the striking sound. Utility Model Content

[0006] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a keyboard magnetic shaft.

[0007] This invention also proposes a keyboard having the keyboard magnetic axis.

[0008] A keyboard magnetic shaft according to a first aspect of the present invention includes a housing, a button, a magnet, and a spring. The housing includes a connected upper cover and a base. The upper cover has a clearance hole, and the base has a sliding groove. The button includes a separate outer button and an inner button for connecting with a keycap. The outer button has a mounting groove and an integrally formed insert portion. The mounting groove and the insert portion are arranged vertically. The inner button is disposed in the mounting groove. The outer button is slidably inserted through the clearance hole. The insert portion is slidably inserted through the sliding groove. The bottom of the insert portion has an impact portion for colliding with the bottom wall of the sliding groove. The magnet is disposed in the inner cavity of the insert portion. The spring is disposed between the base and the outer button to enable the outer button to move upward and reset.

[0009] A keyboard magnetic shaft according to an embodiment of the present invention has at least the following features:

[0010] Beneficial effects:

[0011] On the one hand, since the magnet is located in the inner cavity of the insert part, the downward movement of the outer button will change the position of the magnet and generate the Hall effect. It will also cause the insert part (specifically the impact part on the insert part) integrally formed with the outer button to replace the magnet and collide with the shell to produce a knocking sound, thus avoiding the magnet from becoming loose or even falling off, and avoiding the problem of the magnet heating up due to the collision affecting the conductivity stability.

[0012] On the other hand, the external button can slide up and down through the clearance hole, and the insert portion integrally formed with the external button can slide up and down through the sliding groove. In other words, it can be considered as a single external button that can slide up and down through the clearance hole and the sliding groove. Therefore, the manufacturer only needs to ensure that the coaxiality of one component (i.e., the external button) with the clearance hole and the sliding groove falls within a preset range to ensure the smoothness of button pressing and to ensure that the button does not pre-contact with the hole wall of the clearance hole or the side wall of the sliding groove after assembly. This ensures that the user will not experience a stuck pressing feel due to the resistance from the hole wall of the clearance hole or the side wall of the sliding groove when pressing. It also ensures the coaxiality of the magnet and the Hall sensor on the keyboard to guarantee the accuracy of the magnetic axis. Therefore, compared with the inventor's magnetic axis design (which requires ensuring that the coaxiality of two components with the clearance hole and the sliding groove falls within a preset range), the design accuracy requirements and design difficulty of the keyboard magnetic axis of this application are reduced. Therefore, the design cost can be reduced, thereby reducing the production cost.

[0013] Furthermore, the striking sound generated by the collision between the insert portion (specifically, the impact portion on the insert portion) integrally formed with the outer button and the housing is transmitted through the outer button as a single medium. Therefore, compared to the inventor's magnetic shaft design (which requires transmission through two media, the connected lower button and upper button), it is free from the influence of connection gaps, thus reducing the propagation loss of the striking sound.

[0014] According to some embodiments of the present invention, the mounting groove has a protrusion on its side wall, and the inner button has a plate portion. The protrusion abuts against the plate portion to press the plate portion against the bottom wall of the mounting groove.

[0015] According to some embodiments of the present invention, the inner button is provided with a connecting part for connecting with the keycap, and the inner button is detachably disposed in the mounting groove.

[0016] According to some embodiments of the present invention, one of the bottom wall of the mounting groove and the inner button is provided with a plug and the other is provided with a socket, and the plug is inserted into the socket.

[0017] According to some embodiments of the present invention, the mounting groove is connected to the inner cavity of the insert portion, and the inner button is provided with a pressing block inserted into the inner cavity of the insert portion. The pressing block abuts against the magnet to press the magnet against the bottom wall of the inner cavity of the insert portion.

[0018] According to some embodiments of the present invention, an elastic pad is provided between the pressing block and the magnet, and the pressing block indirectly abuts against the magnet through the elastic pad.

[0019] According to some embodiments of the present invention, the outer button is provided with a release limit portion, which can abut against the upper cover to restrict the outer button from moving upward away from the clearance hole. The base is provided with a guide groove, and the release limit portion is slidably disposed in the guide groove.

[0020] According to some embodiments of the present invention, the wall of the clearance hole is provided with at least three first strips arranged around its axis. The first strips are arranged in the vertical direction, and a first gap is provided between the first strips and the external button. The wall of the clearance hole can indirectly abut against the external button through the first strips.

[0021] According to some embodiments of the present invention, the sidewall of the sliding groove is provided with at least three second strips arranged around its axis. The second strips are arranged in the vertical direction, and a second gap is provided between the second strips and the insert portion. The sidewall of the sliding groove can indirectly abut against the insert portion through the second strips.

[0022] The keyboard according to a second aspect of the present invention includes a keyboard magnetic shaft as described above.

[0023] The keyboard according to the present invention has at least the following beneficial effects: with the above structure, on the one hand, the problem of magnets heating up due to collision affecting the stability of conduction can be avoided; on the other hand, the design cost can be reduced, thereby reducing the production cost; and furthermore, the amount of propagation loss of the generated striking sound can be reduced.

[0024] Additional aspects and advantages of this invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0025] The above and / or additional aspects and advantages of this utility model will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0026] Figure 1 This is a structural diagram of an embodiment of the keyboard magnetic shaft of this utility model;

[0027] Figure 2 for Figure 1 A cross-sectional view of the keyboard magnetic shaft shown;

[0028] Figure 3 for Figure 1 A partial exploded view of the keyboard magnetic axis shown;

[0029] Figure 4 for Figure 3 The structural diagram of the inner button component shown in the figure;

[0030] Figure 5 for Figure 3 The structural diagram of the external button component shown;

[0031] Figure 6 for Figure 3 The structural diagram of the base shown;

[0032] Figure 7 for Figure 3 The diagram shows the structure of the upper cover.

[0033] Figure 8 A cross-sectional view of an existing keyboard magnetic switch;

[0034] Figure 9 A partially exploded view of a magnetic shaft designed by the inventor.

[0035] Figure label:

[0036] Housing 100, top cover 110, clearance hole 111, first strip 111A, base 120, sliding groove 121, second strip 121A, through hole 121B, guide groove 122;

[0037] Button 200, outer button part 210, mounting groove 211, opening 211A, through port 211B, protrusion 211C, insert block 211D, insert cylinder part 212, impact part 212A, release part 213, inner button part 220, plate part 221, connecting part 222, insertion hole 223, pressing block 224, upper button part 230, lower button part 240;

[0038] Magnet 300;

[0039] Spring 400;

[0040] 500 elastic pads;

[0041] Mounting cavity S1, connecting groove S2. Detailed Implementation

[0042] This section will describe in detail the specific embodiments of the present utility model. The preferred embodiments of the present utility model are shown in the accompanying drawings. The purpose of the drawings is to supplement the textual description with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present utility model, but they should not be construed as limiting the scope of protection of the present utility model.

[0043] In the description of this utility model, the use of terms such as first, second, third, fourth, and fifth is only for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of technical features indicated, or implicitly indicating the order of the technical features indicated.

[0044] In the description of this utility model, it should be understood that the directional descriptions, such as up, down, front, back, left, right, etc., indicate the directional or positional relationship based on the directional or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this utility model and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this utility model.

[0045] In this utility model, unless otherwise explicitly defined, the terms "setting," "installing," and "connecting" should be interpreted broadly. For example, they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to a fixed connection, a detachable connection, or an integral molding; they can refer to a mechanical connection; they can refer to the internal connection of two components or the interaction between two components. Those skilled in the art can reasonably determine the specific meaning of the above terms in this utility model in conjunction with the specific content of the technical solution.

[0046] Reference Figures 1 to 7 This utility model provides a keyboard magnetic shaft, which includes a housing 100, a button 200, a magnet 300, and a spring 400.

[0047] The housing 100 includes a connected upper cover 110 and a base 120, which together form a mounting cavity S1. The upper cover 110 has a clearance hole 111, which is located on the upper side of the mounting cavity S1 and communicates with the outside. The base 120 has a sliding groove 121, which is located at the bottom of the mounting cavity S1. The button 200 includes a separate outer button 210 and an inner button 220. The inner button 220 has a connecting part 222 for connecting with a keycap. The outer button 210 has a mounting groove 211 and an integrally formed insert part 212. The mounting groove 211 and the insert part 212 are arranged vertically. The mounting groove 211 has an upward-facing opening 211A. The button 220 is disposed in the mounting groove 211 through the opening 211A. The outer button 210 is slidably disposed in the clearance hole 111. The insert part 212 is slidably disposed in the sliding groove 121. The bottom wall of the mounting groove 211 is provided with a through-hole 211B that communicates with the inner cavity of the insert part 212. The bottom of the insert part 212 is provided with an impact part 212A for colliding with the bottom wall of the sliding groove 121. The magnet 300 is disposed in the inner cavity of the insert part 212 through the opening 211A and the through-hole 211B in sequence. The magnet 300 can slide with the insert part 212, i.e., the outer button 210. The spring 400 is disposed between the base 120 and the outer button 210 and is located in the mounting cavity S1 so that the outer button 210 can be moved upward and reset.

[0048] It is understandable that the separate outer button 210 and inner button 220 are two independent components.

[0049] It is understood that, in this embodiment, reference is made to... Figure 2 and Figure 3 After the magnet 300 is placed in the inner cavity of the insert portion 212 through the opening 211A and the through-hole 211B, the manufacturer can install the inner button 220 in the mounting groove 211 through the opening 211A. The inner button 220 can close the opening 211A to prevent the magnet 300 from coming out of the inner cavity of the insert portion 212.

[0050] With the above structure, on the one hand, since the magnet 300 can be disposed in the inner cavity of the insert portion 212 from top to bottom through the opening 211A and the through-hole 211B, the downward-moving outer button 210 will change the position of the magnet 300, thus generating a Hall effect. Furthermore, the insert portion 212 (specifically, the impact portion 212A on the insert portion 212), integrally formed with the outer button 210, will replace the magnet 300 in colliding with the housing 100 (i.e., the bottom wall of the sliding groove 121) to produce a knocking sound, preventing the magnet 300 from loosening or even falling off, and avoiding the problem of the magnet 300 affecting the conductivity stability due to heat generated by the collision. On the other hand, the outer button 210 can slide vertically through the clearance hole 111, and the insert portion 212, integrally formed with the outer button 210... 2. The outer button 210 can slide vertically through the sliding groove 121. In other words, it can be regarded as an integral outer button 210 that can slide vertically through the clearance hole 111 and the sliding groove 121. Then, the manufacturer only needs to ensure that the coaxiality of one component (i.e., the outer button 210) with the clearance hole 111 and the sliding groove 121 is within a preset range to ensure the smoothness of the button 200 pressing, and to ensure that the button 200 will not pre-abut against the hole wall of the clearance hole 111 or the groove side wall of the sliding groove 121 after assembly. This ensures that the user will not experience a stuck pressing feel due to the resistance from the hole wall of the clearance hole 111 or the groove side wall of the sliding groove 121 when pressing. It also ensures the coaxiality of the magnet 300 and the Hall sensor on the keyboard to ensure the accuracy of the magnetic axis. Therefore, compared to the inventor's magnetic shaft design (which requires ensuring that the coaxiality of the two components with the clearance hole 111 and the sliding groove 121 falls within a preset range), the design precision requirements and design difficulty of the keyboard magnetic shaft in this application are reduced, thus reducing design costs and production costs. Furthermore, the striking sound generated by the collision between the insert portion 212 (specifically, the impact portion 212A on the insert portion 212), which is integrally formed with the outer button 210, and the housing 100 is transmitted through the outer button 210 as a single medium. Therefore, compared to the inventor's magnetic shaft design (which requires transmission through two media, the connected lower button 240 and upper button 230), this design is free from the influence of connection gaps, thus reducing the propagation loss of the striking sound.

[0051] In some embodiments, the outer wall of the insert portion 212 is provided with an insertion port communicating with its inner cavity, and the magnet 300 can be horizontally inserted into the inner cavity of the insert portion 212 through the insertion port.

[0052] In this embodiment, refer to Figure 2 , Figure 3 as well as Figure 5 The outer button 210 is provided with a limited release part 213, which can abut against the upper cover 110 to limit the outer button 210 from moving upward away from the clearance hole 111.

[0053] Understandably, the spring 400 can drive the external button 210 to move upward and reset, so that the release part 213 abuts against the upper cover 110.

[0054] Furthermore, referring to Figure 2 and Figure 3 The base 120 is provided with a guide groove 122, and the limiting part 213 is slidably provided in the guide groove 122.

[0055] With the above structure, the release limit 213 is slidably disposed in the guide groove 122. The release limit 213 and the guide groove 122 can work together to guide the outer button 210 to slide up and down, ensuring that the outer button 210 slides stably in the up and down direction.

[0056] The inner button 220 is disposed in the mounting groove 211 through the opening 211A. For details, please refer to... Figure 2 and Figure 3 The mounting groove 211 has a protrusion 211C on its side wall and an inner button 220 has a plate 221. When the inner button 220 is inserted into the mounting groove 211 through the opening 211A, the protrusion 211C abuts against the plate 221 to press the plate 221 against the bottom wall of the mounting groove 211.

[0057] In some embodiments, the inner button 220 is detachably disposed in the mounting slot 211 so that users can easily replace the inner button 220 with one of the corresponding material, color and performance.

[0058] To improve the connection stability between the outer button 210 and the inner button 220, refer to Figures 2 to 4 The bottom wall of the mounting groove 211 is provided with a plug 211D, and the inner button 220 is provided with a socket 223, and the plug 211D is inserted into the socket 223.

[0059] In some embodiments, the insert block 211D may be disposed in the inner button 220, and the insertion hole 223 may be disposed in the bottom wall of the mounting groove 211.

[0060] In this embodiment, refer to Figures 2 to 4 The inner button 220 is provided with a pressing block 224 that is inserted into the inner cavity of the insert part 212 through the through port 211B. An elastic pad 500 is provided between the pressing block 224 and the magnet 300. The pressing block 224 indirectly abuts against the magnet 300 through the elastic pad 500 to press the magnet 300 against the bottom wall of the inner cavity of the insert part 212.

[0061] With the above structure, the elastic pad 500 allows the inner cavity of the insert portion 212 to be designed to be deeper, thereby allowing the magnet 300 to be installed lower and better meet the requirements of the Hall element to sense changes in the magnetic field. At the same time, using the elastic pad 500 to press the magnet 300 together makes the magnet 300 more reliably fixed in the inner cavity of the insert portion 212.

[0062] In this embodiment, refer to Figure 1 and Figure 7 The clearance hole 111 has eight first strips 111A arranged around its axis on its hole wall. The first strips 111A are arranged in the vertical direction, and a first gap is provided between the first strips 111A and the outer button 210. The hole wall of the clearance hole 111 can indirectly abut against the outer button 210 through the first strips 111A. Of course, in some embodiments, the number of first strips 111A can be set to 10, etc.

[0063] With the above structure, when the user tilts the button cap, the outer button 210 can abut against the corresponding first strip 111A. In other words, when the user tilts the button cap, the setting of the first strip 111A can greatly reduce the contact area between the wall of the clearance hole 111 and the outer button 210. Therefore, the frictional resistance given by the wall of the clearance hole 111 can be greatly reduced, improving the user's pressing experience.

[0064] In this embodiment, refer to Figure 2 and Figure 3 The sliding groove 121 has six second strips 121A arranged around its axis on its side wall. The second strips 121A are arranged in the vertical direction. A second gap is provided between the second strips 121A and the insert part 212. The side wall of the sliding groove 121 can indirectly abut against the insert part 212 through the second strips 121A.

[0065] With the above structure, when the user tilts the button cap, the insert portion 212, which is integrally formed with the outer button 210, can abut against the corresponding second strip portion 121A. In other words, when the user tilts the button cap, the setting of the second strip portion 121A can greatly reduce the contact area between the groove sidewall of the sliding groove 121 and the insert portion 212. Therefore, the frictional resistance given by the groove sidewall of the sliding groove 121 can be greatly reduced, improving the user's pressing experience.

[0066] In this embodiment, refer to Figure 6 The bottom wall of the sliding groove 121 is provided with a through hole 121B.

[0067] With the above structure, the through hole 121B allows air to be discharged from the sliding groove 121. This prevents the magnet 300 from overheating due to the compression of air in the sliding groove 121 when the user presses the keycap and moves the button 200 connected to the keycap downwards. In addition, the discharge of air can effectively reduce the pressing resistance, thus greatly improving the pressing experience of the magnetic shaft.

[0068] This invention also proposes a keyboard, which includes the aforementioned keyboard magnetic shaft. With this structure, on the one hand, the problem of the magnet 300 heating up due to impact affecting conductivity stability can be avoided; on the other hand, design costs can be reduced, thereby reducing production costs; and furthermore, the propagation loss of the resulting keystroke sound can be reduced.

[0069] Of course, this utility model is not limited to the above-described embodiments. Those skilled in the art can make equivalent modifications or substitutions without departing from the spirit of this utility model. All such equivalent modifications and substitutions are included within the scope defined by the claims of this application.

Claims

1. A keyboard magnetic shaft, characterized in that: include The housing (100) includes a connected upper cover (110) and a base (120), the upper cover (110) having a clearance hole (111) and the base (120) having a sliding groove (121); The button (200) includes a separate outer button (210) and an inner button (220) for connecting with a keycap. The outer button (210) is provided with a mounting groove (211) and an integrally formed insert (212). The mounting groove (211) and the insert (212) are arranged vertically. The inner button (220) is located in the mounting groove (211). The outer button (210) is slidably inserted through the clearance hole (111). The insert (212) is slidably inserted through the sliding groove (121). The bottom of the insert (212) is provided with an impact part (212A) for colliding with the bottom wall of the sliding groove (121). A magnet (300) is disposed in the inner cavity of the insert portion (212); A spring (400) is disposed between the base (120) and the external button (210) to enable the external button (210) to move upward and reset.

2. A keyboard magnetic switch according to claim 1, characterized in that: The mounting groove (211) has a protrusion (211C) on its sidewall, and the inner button (220) has a plate (221). The protrusion (211C) abuts against the plate (221) to press the plate (221) against the bottom wall of the mounting groove (211).

3. A keyboard magnetic switch according to claim 1, characterized in that: The inner button (220) is provided with a connecting part (222) for connecting with the keycap, and the inner button (220) is detachably provided in the mounting groove (211).

4. A keyboard magnetic switch according to claim 1, characterized in that: The bottom wall of the mounting groove (211) and the inner button (220) are provided with a plug (211D) and a socket (223), respectively, and the plug (211D) is inserted into the socket (223).

5. A keyboard magnetic shaft according to claim 1, characterized in that: The mounting groove (211) communicates with the inner cavity of the insert part (212). The inner button (220) is provided with a pressing block (224) inserted into the inner cavity of the insert part (212). The pressing block (224) abuts against the magnet (300) to press the magnet (300) against the bottom wall of the inner cavity of the insert part (212).

6. A keyboard magnetic switch according to claim 5, characterized in that: An elastic pad (500) is provided between the pressing block (224) and the magnet (300), and the pressing block (224) indirectly abuts against the magnet (300) through the elastic pad (500).

7. A keyboard magnetic switch according to claim 1, characterized in that: The external button (210) is provided with a release limit part (213), which can abut against the upper cover (110) to limit the external button (210) from moving upward away from the clearance hole (111). The base (120) is provided with a guide groove (122), and the release limit part (213) is slidably disposed in the guide groove (122).

8. A keyboard magnetic switch according to claim 1, characterized in that: The clearance hole (111) has at least three first strips (111A) arranged around its axis. The first strips (111A) are arranged in the vertical direction. A first gap is provided between the first strips (111A) and the external button (210). The clearance hole (111) can indirectly abut against the external button (210) through the first strips (111A).

9. A keyboard magnetic switch according to claim 1, characterized in that: The sliding groove (121) has at least three second strips (121A) arranged around its axis on its sidewall. The second strips (121A) are arranged in the vertical direction. A second gap is provided between the second strips (121A) and the insert part (212). The sidewall of the sliding groove (121) can indirectly abut against the insert part (212) through the second strips (121A).

10. A keyboard characterized by: Includes a keyboard magnetic switch as described in any one of claims 1-9.