- EXPLORE Coupons Tech Help Pro Random Article About Us Quizzes Contribute Train Your Brain Game Improve Your English Popular Categories Arts and Entertainment Artwork Books Movies Computers and Electronics Computers Phone Skills Technology Hacks Health Men's Health Mental Health Women's Health Relationships Dating Love Relationship Issues Hobbies and Crafts Crafts Drawing Games Education & Communication Communication Skills Personal Development Studying Personal Care and Style Fashion Hair Care Personal Hygiene Youth Personal Care School Stuff Dating All Categories Arts and Entertainment Finance and Business Home and Garden Relationship Quizzes Cars & Other Vehicles Food and Entertaining Personal Care and Style Sports and Fitness Computers and Electronics Health Pets and Animals Travel Education & Communication Hobbies and Crafts Philosophy and Religion Work World Family Life Holidays and Traditions Relationships Youth
- HELP US Support wikiHow Community Dashboard Write an Article Request a New Article More Ideas...
- EDIT Edit this Article
- PRO Courses Guides New Tech Help Pro Expert Videos About wikiHow Pro Coupons Quizzes Upgrade Sign In
- Browse Articles
- Learn Something New
- Train Your Brain
- Improve Your English
- Explore More
- Support wikiHow
- About wikiHow
- H&M Coupons
- Hotwire Promo Codes
- StubHub Discount Codes
- Ashley Furniture Coupons
- Blue Nile Promo Codes
- NordVPN Coupons
- Samsung Promo Codes
- Chewy Promo Codes
- Ulta Coupons
- Vistaprint Promo Codes
- Shutterfly Promo Codes
- DoorDash Promo Codes
- Office Depot Coupons
- adidas Promo Codes
- Home Depot Coupons
- DSW Coupons
- Bed Bath and Beyond Coupons
- Lowe's Coupons
- Surfshark Coupons
- Nordstrom Coupons
- Walmart Promo Codes
- Dick's Sporting Goods Coupons
- Fanatics Coupons
- Edible Arrangements Coupons
- eBay Coupons
- Log in / Sign up
- Computers and Electronics
- Computer Peripherals
- Computer Mouse Devices

5 Ways to Use a Keyboard to Click & Move a Mouse on PC & Mac
Last Updated: April 11, 2023 References Tested
Left & Right Click: Windows
Left click: mac, enable mouse keys: windows, enable mouse keys: mac, autohotkey on windows.
- Expert Q&A
This article was co-authored by Luigi Oppido and by wikiHow staff writer, Nicole Levine, MFA . Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years. There are 7 references cited in this article, which can be found at the bottom of the page. The wikiHow Tech Team also followed the article's instructions and verified that they work. This article has been viewed 609,842 times.
Do you want to click something on your computer screen without pressing a mouse button? If your mouse or trackpad isn't working , you can use the arrow or Tab keys on your keyboard to select icons, apps, and menu items, and then press the Enter or Return to left-click them. You can also right-click with the keyboard to bring up context menus using keyboard shortcuts, or enable Mouse Keys to move the cursor. This wikiHow guide will teach you easy ways to use your PC or Mac keyboard to left click, right click, and navigate menus when your mouse or trackpad isn't available.
Things You Should Know
- On Windows and Mac, use the arrow keys or Tab to move between options, then press Enter or Return to left click.
- To right click without a mouse on Windows, press Shift + F10, or press the Menu key on the keyboard.
- To right click on Mac without a mouse, enable Mouse Keys, then press Ctrl + M (or Ctrl + 0 if you have a numeric keypad).

- Pressing a letter will prompt the selection to jump to the next item that begins with that letter. For example, pressing R might select Recycle Bin .
- Start menu: Press the Windows key , press Tab to switch between sections, then use the arrow keys to select an item.
- Menus and toolbars: Press Alt on the keyboard to activate the menu bar. Use the arrow keys to navigate, and Tab to switch between sections and toolbars.
- File Explorer: Press Windows key + E to open File Explorer , then use Tab to switch between panels. You can navigate each panel using the up, down, left, and right directional arrow keys.

- If you select an icon to open a program, file, or folder, pressing Enter will emulate a double-click to open the selected item. This is because you've already selected the item with the arrow or Tab keys.

- When you press the Menu key with an item selected, you'll bring up the same context menu you'd see if you were to press the right mouse button.
- If the Menu key is shared with Ctrl or another key, hold down Fn as you press it.
- If your keyboard does not have a Menu key, you can press Shift + F10 instead. You may need to hold down the Fn key for this shortcut to work.

- You can also press and hold these two keys, then release the Tab key (while continuing to hold down F4 ) to see all open windows on the screen at once.
- Press Alt + F4 to close the active window. On some keyboards, you'll need to hold down Alt + Fn and tap F4 instead.
- Press Windows key + S to activate the Search bar, where you can then type the name of a program, file, or other item you're looking for.
- Press Windows key + X to open the Power User menu, where you can launch system tools and programs like File Manager, Task Manager, Command Prompt, and more.
- Windows key + E opens the File Explorer. You can use Tab to switch between panels.

- You may need to hold down Fn as you press Control + F2 for this to work.
- Dock: To get to the Dock without a mouse, press Control + F3 (or Fn + Control + F3 ), then use the arrow keys to navigate.
- If you don't see a Finder window when you select Finder, press Command + N to open one now.
- App preferences: Press Command + , to open the preferences for the active app. [3] X Research source Use Tab to switch between sections, and the arrow keys to move up, down, left, and right.

- If you're navigating a menu that isn't in the menu bar at the top of the screen, you'll use the Spacebar to right-click instead.
- To right-click without a mouse, you'll need to use enable mouse keys .

- Command + Q shuts down the active app.
- Command + Tab switches between all open apps. You can continue holding down Command as you press Tab repeatedly until you've selected the desired app.
- Command + ~ switches between different windows in an app.
- Command + L activates the Safari address and search bar.
- Command + Spacebar activates Spotlight search, which makes it easy to search for anything on your Mac.

- If your computer doesn't have a dedicated number pad on the right side of the keyboard, you won't be able to turn on this accessibility feature. Instead, try AutoHotKey .

- If the switch is not selected, use the Tab key to select it.

- Use Tab to select "Mouse keys speed" (Windows 11) or "Pointer speed" (Windows 10).
- Press and hold the right arrow key to increase the speed—you might want to boost it all the way.
- Press Tab to move to "Mouse keys acceleration (Windows 11)" or "Pointer acceleration" (Windows 10).
- Press and hold the right arrow key to increase the speed. Again, moving this slider all the way might be your best option.

- If this key shares a function with another key, you may have to press Fn to turn it on.

- Press and hold 4 to move left, and 6 to move right.
- Press and hold 8 to move up, and 2 to move down .
- Press and hold 7 to move up diagonally to the left, and 9 to move up diagonally to the right.
- Press and hold 1 to move down diagonally to the left, and 3 to move down diagonally to the right.
- If the mouse doesn't move when you press and hold these keys, press the Num Lock key again.

- Press the / key on the numeric keypad to change the 5 key to left-click, which is a standard mouse click.
- Press the - (minus) key on the numeric keypad to change the 5 to right-click, which usually opens context menus.

- The function of the 5 will remain the same (e.g., it'll stay in left-click mode if you pressed / ) until you change it.

- To drag an item, use your Mouse Keys to point the cursor at the item, then press and hold 0 as you continue moving the cursor.
- To drop the item, press the decimal point on the numeric keypad.

- If your Mac has a Touch Bar, use Fn + Option + Command + F5 instead.
- Depending on your settings, you may be able to quickly enable Mouse Keys by pressing the Option key 5 times quickly. If you see "Mouse keys on" when you do this, you can now skip to Step 3.

- If you can use a mouse, go to System Preferences > Accessibility > Pointer Control > Alternate Control Methods > Options , then check the box next to "Press the Option key five times to toggle Mouse Keys." If not, continue with these steps.
- Press Command + Shift + ? on the keyboard to activate Help on the menu. [7] X Research source
- Use the left arrow key to move to the Apple menu.
- Use the down arrow to select System Preferences and press Return .
- You'll see that the cursor is active in the Search bar—type alternate control methods into the search bar, use the down arrow to select Alternate Control Methods and press Return .
- Use Tab to select the Options button and press Return .
- Press Spacebar to check the box next to "Press the Option key five times to toggle mouse keys".
- Use Tab to select OK and press Return .

- On a numeric keypad, use 4 to move left, and 6 to move right.
- On a numeric keypad, use 8 to move up, and 2 to move down.
- 7 and 9 work the same on the numeric keypad as well.
- On a numeric keypad, use 1 to move down diagonally to the left, and 3 to move down diagonally to the right.

- If you're using the numeric keypad, use 5 to left-click.

- If you're using the numeric keypad, you can press Control + 0 instead.
- To press and hold the "mouse button," press M on the keyboard, or 0 on the numeric keypad.

- If your mouse isn't working, use Mouse Keys to download, install, and configure AutoHotKey.
- Take a look at our guide on using AutoHotkey for general information on installation and scripting.

- Click Download . It’s the green button in the center of the page. Download options will appear on the page.
- Click Download Current Version . This will download the installation file for the latest version of AutoHotkey.

- The file name will be formatted as “AutoHotkey_version number_setup.”
- Your downloaded files can be found in your Downloads folder by default.

- Express Installation will install AutoHotkey on your computer with the default configuration.
- When it's finished installing, you can click "Run AutoHotkey" to launch some of the documentation about AutoHotkey.

- You can rename the file while the default name is highlighted. For example, “Click Keyboard Shortcut.”
- Make sure not to delete the file extension “.ahk” at the end of the file name. Deleting it may cause the script to stop working.

- *<#RCtrl::
- SendEvent {Blind}{LButton down}
- KeyWait RCtrl
- SendEvent {Blind}{LButton up}

- You can close Notepad after saving your work.

- Right-click the AutoHotkey tray icon for additional script options. To stop the script from running, select Exit in the menu.
Expert Q&A Did you know you can get premium answers for this article? Unlock premium answers by supporting wikiHow

Support wikiHow by unlocking this expert answer.

Support wikiHow by unlocking this staff-researched answer.
- If your computer's built-in mouse isn't working, you can try using a Bluetooth or USB mouse. ⧼thumbs_response⧽ Helpful 0 Not Helpful 0
- If your computer has a touch screen option, you can enable it to tap options on the screen instead of clicking with the mouse. ⧼thumbs_response⧽ Helpful 0 Not Helpful 0

- Using the keyboard to click will end up being a very time-consuming process. Try to get your computer into a tech repair shop to have the mouse repaired or replaced. ⧼thumbs_response⧽ Helpful 0 Not Helpful 0
You Might Also Like

- ↑ https://help.gnome.org/users/gnome-help/stable/keyboard-key-menu.html.en
- ↑ https://support.apple.com/en-us/HT204434
- ↑ https://support.apple.com/en-us/HT201236
- ↑ https://support.microsoft.com/en-us/windows/use-mouse-keys-to-move-the-mouse-pointer-9e0c72c8-b882-7918-8e7b-391fd62adf33
- ↑ https://support.apple.com/en-us/HT202562
- ↑ https://www.youtube.com/watch?v=zRZMZnCYIXA
- ↑ https://www.autohotkey.com/docs/misc/Remap.htm#moving-the-mouse-cursor
About This Article

1. Use the arrow keys or Tab key to navigate. 2. Press Enter or the spacebar to click. Did this summary help you? Yes No
- Send fan mail to authors
Reader Success Stories

Karen Hatcher
Jul 6, 2016
Is this article up to date?

Featured Articles

Trending Articles

Watch Articles

- Terms of Use
- Privacy Policy
- Do Not Sell or Share My Info
- Not Selling Info
wikiHow Tech Help Pro:
Level up your tech skills and stay ahead of the curve
How to control your mouse using a keyboard on Windows 10
You can use the numeric keypad to control the mouse on Windows 10, and in this guide, you'll learn the steps to use this feature.

On Windows 10, there are a lot of reasons why you may want to use the keyboard to control the mouse pointer. For instance, if the mouse stops working on your desktop, the touchpad suddenly breaks on your laptop, or you can't use the mouse, and using the keys on the keyboard is your best alternative.
Whatever the reason it might be, Windows 10 ships with the Mouse Keys feature that allows you to use the numeric keypad to move the mouse as well as to perform actions, such as click, double-click, open context menus, select, and more.
In this Windows 10 guide, we'll walk you through the steps to enable Mouse Keys feature to control the mouse with the numeric keypad.
How to enable Mouse Keys feature using Settings
How to enable mouse keys feature using control panel.
- How to move pointer using keypad on Windows 10
To control the mouse pointer using the keyboard on Windows 10, use these steps:
- Open Settings .
- Click on Ease of Access .
- Click on Mouse .
- Turn on the Control your mouse with a keypad toggle switch.
- (Optional) Check the Hold Ctrl key + to speed up and the Shift key to slow down option.
- Use the sliders to adjust the pointer speed and pointer acceleration .
Once you complete the steps, you can use the numeric keypad on the keyboard to move the mouse around the screen. Usually, you'll use the 4 and 6 keys to move left and right , and the 2 and 8 keys to move up and down.
If you enabled the option, you could press the Ctrl key while moving the mouse to speed up the pointer or the Shift key to slow down the pointer.
To control the mouse using the numeric keypad, use these steps:
- Open Control Panel .
- Click on Ease of Access Center .
- Check the Make the mouse easier to use option.
- Under the "Control the mouse with the keyboard" section, click the Set up Mouse Keys option.
- Check the Turn on Mouse Keys option. Quick tip: You can use the "Keyboard shortcut" settings to enable or disable the feature using the Alt + left Shift + Num Lock keyboard shortcut.
- Under the "Pointer speed" section, use the Top speed and Acceleration sliders to adjust the mouse speed.
- (Optional) Check the Hold down CTRL to speed up and SHIFT to slow down option.
- Click the Apply button.
- Click the OK button.
After you complete the steps, you can start using the numeric keypad to move the pointer on the screen without a mouse.
We're focusing this guide on Windows 10, but you can use the Control Panel settings to control the mouse with a keypad on older versions, including Windows 8.1 and Windows 7.
How to use keypad to move mouse on Windows 10
Once you activate the option to control your mouse with the keyboard, you can not only use the numeric keypad to move the pointer around, but you can also select, click, and drag items.
Moving pointer around
To move the mouse pointer around the screen, use these numeric keys:
- 7 – Up and to the left.
- 8 – Up.
- 9 – Up and to the right.
- 4 – Left.
- 6 – Right.
- 1 – Down and to the left.
- 2 – Down.
- 3 – Down and to the right.
Clicking items
- Point to item, press and hold "/" (selects left button), and then press "5" – Clicks item.
- Point to item, press and hold "-" (selects right button), and then press "5" – Right-clicks item.
- Point to item, press and hold "*" (selects both buttons), and then press "+" – Double-clicks item.
Dragging and dropping
To drag and drop items, you first need to select, drag, and then open the context menu and select the move option:
- Point to item and press "0" – Drags item.
- Point to location to move item, press "." (decimal point), and select the Move here option – Drops item.
Get the Windows Central Newsletter
All the latest news, reviews, and guides for Windows and Xbox diehards.
Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.
- 2 Can I pet the dogs in Diablo 4?
- 3 Pieces Interactive shines spotlight on Alone in the Dark, releases prologue for Xbox and PC
- 4 Homeworld 3 delayed to 2024
- 5 Does Diablo 4 support local couch co-op?
Use Mouse Keys to move the mouse pointer
With Mouse Keys, you can use the numeric keypad on your keyboard—instead of the mouse—to move the pointer.
To turn on Mouse Keys

Click Make the mouse easier to use .
Under Control the mouse with the keyboard , select the Turn on Mouse Keys check box.
Moving the pointer using Mouse Keys
After you turn on Mouse Keys, you can use the numeric keypad to move the mouse.
Selecting a mouse button
Before you use Mouse Keys to click items on your screen, you must first select which mouse button you want to be the active button: the left button, the right one, or both.
Note: If you choose to make the left mouse button the active button, it will remain the active button until you choose another button. After you select a mouse button, you don't need to select a mouse button again until you want to change buttons.
Clicking items using Mouse Keys
After you choose a button, you can click items on your screen.
Dragging items using Mouse Keys
You can use the numeric keypad to press and hold the active mouse button and to release it. This is helpful if you want to drag an item.
To change options like how quickly the mouse pointer moves and whether your computer makes a sound when you turn on Mouse Keys, in the Ease of Access Center, under Control the mouse with the keyboard , click Set up Mouse Keys .

Need more help?
Want more options.
Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Microsoft 365 subscription benefits

Microsoft 365 training

Microsoft security

Accessibility center
Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Ask the Microsoft Community

Microsoft Tech Community

Windows Insiders
Microsoft 365 Insiders
Find solutions to common problems or get help from a support agent.

Online support

Was this information helpful?
Thank you for your feedback.
- Buying Guides
Complete Guides by How-To Geek

Our Latest Product Roundups
Reader favorites, more from how-to geek, latest geek news.

Latest Reviews
Across lifesavvy media.

Join 425,000 subscribers and get a daily digest of news, geek trivia, and our feature articles.
By submitting your email, you agree to the Terms of Use and Privacy Policy .
How to Remap Any Key or Shortcut on Windows 10

Benj Edwards is a former Associate Editor for How-To Geek. Now, he is an AI and Machine Learning Reporter for Ars Technica. For over 15 years, he has written about technology and tech history for sites such as The Atlantic, Fast Company, PCMag, PCWorld, Macworld, Ars Technica, and Wired. In 2005, he created Vintage Computing and Gaming, a blog devoted to tech history. He also created The Culture of Tech podcast and regularly contributes to the Retronauts retrogaming podcast. Read more...

Lowell is the founder and CEO of How-To Geek. He’s been running the show since creating the site back in 2006. Over the last decade, Lowell has personally written more than 1000 articles which have been viewed by over 250 million people. Prior to starting How-To Geek, Lowell spent 15 years working in IT doing consulting, cybersecurity, database management, and programming work. Read more...

Would you like to use a different keyboard key to perform a certain task in Windows 10? Thanks to PowerToys , it’s easy to remap any key to another key or even a shortcut combination on your keyboard. Here’s how to set it up.
The Secret Is PowerToys
In the past, remapping keys in Windows 10 required a difficult-to-use third-party program. Today, Microsoft makes it easy with PowerToys , a free utility available for download online. Using PowerToys, you can make any key on your keyboard act like any other key—and even remap shortcuts.
If you don’t already have PowerToys installed, download it for free from Github. After you install it, launch PowerToys Settings, then click “Keyboard Manager” in the sidebar. In the “Keyboard Manager” settings, click “Remap a Key.”

When the “Remap Keyboard” window pops up, click the plus button (“+”) to add a new key mapping.

After that, you’ll need to define which key you want to remap (in the “Key:” column), and what key or shortcut you want it to perform (in the “Mapped To:” column).
First, select the key you’ll be remapping in the “To:” column by either clicking the “Type” button and pressing the key on your keyboard, or by selecting it from the list in the drop-down menu. For example, we’ll pick Scroll Lock here, since it often sits unused.
RELATED: How to Make Your Scroll Lock Key Useful on a Windows 10 PC

Next, select the key or shortcut you want to perform in the “Mapped To” column. For a single key, you can either choose it from the drop-down menu or click the “Type” button, then press it on your keyboard.
If you want to use a shortcut key combination, press the “Type” button, then press the combination on your keyboard. For example, here we’ve typed “Ctrl+C” for the standard Windows “Copy” shortcut.

After you have both “Key:” and “Mapped To:” columns defined, click “OK.”

If you see a warning that one key will be left unassigned, click “Continue Anyway.” This means that you won’t be able to access the original function of the key that you just remapped.
(In our example, there will be no way to use Scroll Lock unless you remap another key to perform the original Scroll Lock function).

Next, you’ll see the resulting mapping listed in the “Keyboard Manager” settings. That means your custom mapping has been saved and is now active.

If you want to add more mappings, click “Remap a key” again. When you’re done, close PowerToys Settings completely, and your remapped key (or keys) will remain in effect. Use them as much as you’d like. You can always go back and adjust your mappings later if necessary.
How to Remove the New Key Mapping
Later on, if you want to remove the custom mapping you made, relaunch Power Toys Settings, then click “Keyboard Manager” and “Remap a key” again. In the list of mappings, click the trash can icon beside the mapping you’d like to delete.

The mapping will be removed. After that, click “OK” to close the window. Then you can either exit PowerToys completely or create a new mapping using the guide above. Have fun!
RELATED: How to Remap Any Key or Shortcut on Windows 11
How to Disable or Remap Keys Using SharpKeys [Alternative Method]
The major problem with PowerToys is that the remappings only work if the PowerToys application is running, so they won’t work on the login screen. There also seem to be issues with the remappings not working properly in games and some other places. The solution? Use the old-school Windows Registry key remapping technique… but do it the easy way, using the open-source SharpKeys application.
SharpKeys won’t let you remap shortcut key combinations, so you can’t remap ALT+C to CTRL+C, for example, but you can do things like remap or disable the Caps Lock key on any version of Windows .
Install the application from their Github project page or from the Microsoft Store , open it up (clicking through the annoying Windows SmartScreen warnings), and then click the Add button to open up the Add New Key Mapping dialog.

We’ve been using SharpKeys literally since Windows Vista was around. That’s a long time.
RELATED: All Microsoft's PowerToys for Windows 10 and 11, Explained
- › All Microsoft’s PowerToys for Windows 10 and 11, Explained
- › How to Remap Keyboard Keys on Windows 7
- › How to Remap Any Key or Shortcut on Windows 11
- › How to Disable or Remap Caps Lock Key in Windows
- › The Fastest Way to Put Your PC to Sleep
- › Acer’s New Swift Edge 16 Laptop Is Thin and Has Wi-Fi 7
- › How to Check Your RAM Speed
- › 1080p vs. 1440p vs. 4K Monitors: How Big Is the Difference?
Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Set mouse or keyboard button to simulate left click and hold or rapid left click repeating in Windows?
Does anyone know a way to configure Windows 7 or use third party software to do this? I would like to click my middle mouse button and have it tell Windows to left click and hold until I click the middle mouse button again. A keyboard key would be fine as well.
Some games and apps have me holding down the left mouse button for a long time and I would like to reduce the stress on my mouse hand. Also, I would like to do a similar thing but have it repeatedly click the left mouse button automatically if possible.
If none of that is possible, how about temporalily setting a keyboard key to achieve a left mouse button emulation?
- 1 this may be built into Windows- windows.microsoft.com/en-GB/windows7/… -I can't check on this machine (so haven't made this an answer) but I'm sure the option to click on click off existed for users with difficulties using mice – BrianA Dec 8, 2011 at 9:29
10 Answers 10
you can create all your custom keyboard shortcuts using autohotkey. Autohotkey is a free open source software for macro and key binds.
http://www.autohotkey.com/
- 7 It would have been better to provide an actual script to do it. – Synetech Oct 1, 2012 at 3:29
- 1 Script for autohotkey that binds a keyboard shortcut to a mouse click: superuser.com/a/913791/295795 – abaldwin99 Mar 17, 2016 at 13:19
MouseKeys is built into windows XP and higher.
Step 1 Turn on MouseKeys in Windows XP by pressing “Left-Alt, "Left-Shift" and "NumLock” simultaneously. Press “Enter” to select “Yes” in the dialog box that appears to activate MouseKeys. Step 2 Move the mouse pointer left and right by pressing “4” and “6” on the numeric keypad. Press “8” and “2” to move the pointer up or down. The “1”, “3”, “7” and “9” keys move the mouse pointer diagonally. Step 3 Simulate a left mouse click by pressing “5." Press “+” to double-click. Press “-“ and then “5” to right-click. Step 4 Drag and drop by moving the mouse with the numeric keypad. Press “Insert” to simulate holding down the mouse button, and then press the “Delete” key to release.
- Many laptops and keyboard lack numpad, which is required for this to work. Furthermore, the keys are not rebindable, and so cumbersome to use that it's a worse solution than to click. – Henrik Erlandsson Aug 29, 2020 at 22:39
Here's the autohotkey script that will bind a keyboard shortcut (CTRL + g) to a mouse click.
Save this in notepad with the file extension .ahk then compile with autohotkeys. To compile autohotkeys scripts you will need to download it here:
Also You can replace the key g with any letter to change the trigger key. To change from CTRL to ALT replace the ^ with ! . For a complete list of symbols defining hotkeys see this documentation...
https://www.autohotkey.com/docs/Hotkeys.htm

Autohotkey script for mapping a key to left mouse button (and hold while keeping key pressed), if key combined with SHIFT, the right mouse button will be clicked instead of the left. I used the `
I've been using this one & setting a key for left click. Set it to hold the key & click from 0-9999 clicks/second
http://sourceforge.net/projects/fastclicker/
Try a combination of:
a) mouse click emulating software (e.g. http://softboy.net/key/index.htm )
b) macro editor (e.g. http://robotask.com/ ).
There is a brilliant free open source successor of project fastclicker resides at sourceforge too. It is called "The Windows Intel Fastest Mouse Clicker" (google it). That application uses modern SendInput() system call instead of obsolete mouse_event() in fastclicker. Also "The Windows Intel Fastest Mouse Clicker" is heavily optimized with Intel C/C++ compiler 15.0.
https://sourceforge.net/projects/fast-mouse-clicker-pro/

- This is the correct answer to the question. It will let you assign a key to do 1 or more clicks, or click repeatedly, but will NOT let you assign a key to a mouse button. You cannot hold the mouse button by holding down the keys, do drag and drop, and so on. Furthermore, if you want to do repeated clicks, well, unfortunately this will lead to a pause between the first clicks and the repeated clicks. So for someone who wants repeated clicks, this is nevertheless a bad solution and far from brilliant. – Henrik Erlandsson Aug 29, 2020 at 22:54
Just found this one, very helpful:
http://rhdesigns.browseto.org/mouseemulator.html
"Mouse Emulator" This program is freeware. If you really like this program, and want to make a donation, please go to the website for more information. Thank you. The program runs under windows NT/9x and above. Manual The program recognizes the following keys: (NumLock must be ON!) Keypad 1 - Left mouse button Keypad 2 - Right mouse button Keypad 3 - Middle mouse button Keypad 4, 5, 6, 8 - Moves the mouse left, down, right or up respectively. Keypad 7 - Mousewheel up (Scroll) Keypad 9 - Mousewheel down (Scroll) Keypad / - Toggle Left mouse button (Useful for RSI users) Keypad * - Toggle Right mouse button (Useful for RSI users) Keypad - - Toggle Middle mouse button (Useful for RSI users) Ctrl + Keypad 0 - Enable/Disable Mouse emulator You can exit Mouse Emulator by right clicking on the mouse icon in the taskbar. Adjusting the mouse speed: Double click on one of the .reg files and restart the program to change the mouse speed. For instance double-click on SlowMouseSpeed.reg and restart the program if you think the mouse speed of mouse emulator is too high. For advanced users: If you want to adjust the mouse speed, you can use regedit to change the registry values. Known Problems: Mouse Emulator does not work with MS-Dos prompts (9x) Mouse Emulator does not work with DirectX Mouse Input (DirectInput)
I use The Windows Intel Fastest Mouse Clicker too. A week ago they fixed a bug, and this app is 100 times faster now than FastClicker by xytor mentioned above by Michael (with the bug it was 10 times faster).
Also I watched at source code of The Windows Intel Fastest Mouse Clicker and adopt it for Java in my current projects. Hint:
Hi I just found an other useful way to do this in Windows 7.
1) Seach for "Mouse" for where you search for program and files. Then click on the result which should open "Mouse Properties".
2) Click on "ClickLock" which enable to highlight or drag without holding down the mouse button.
3) Click on "Settings" to adjust the time before the "script" is activated.
Not the answer you're looking for? Browse other questions tagged windows keyboard mouse or ask your own question .
- The Overflow Blog
- How to use marketing techniques to build a better resume
- How the creator of Angular is dehydrating the web (Ep. 574)
- Featured on Meta
- AI/ML Tool examples part 3 - Title-Drafting Assistant
- We are graduating the updated button styling for vote arrows
- Middle Sidebar Advertising
Hot Network Questions
- A funny bug with input, newcommand, ifthenelse in a beamer
- Can we rearrange terms in the tensor product?
- Category of small categories is not adhesive?
- Who said that one should change one’s direction of research every seven years?
- Ideal Transformer Model Confusion
- Company wants to see offer letter received from another company to match salary
- "in the Hebrew it ..." vs "in Hebrew it ..." - what is the difference of meaning in this paragraph of Milton and in general?
- Is it appropriate to cite vulgar websites used for gathering data?
- What would be an example of something digital which isn't electronic?
- How do I include an invitation letter? (United States)
- Can I still be a Catholic if I don’t believe everything in line with the church?
- Is limit about functions?
- Idiom for doing something you didn't ask
- What does a question mark `?` in the STAT column of `ps` on MacOS indicate?
- What happens if an insurance company does not mention a critical clause of a policy during a telephone purchase?
- Asbestos contamination
- How and why did Rabbi Ishmael's 13 rules make their way into pre-tefillah in shacharit?
- Understanding a simplifying assumption in Invariant Subspace Problem proof
- Force Microsoft Teams to use default audio devices set in Windows
- Ubuntu installation on laptop. What to do with Windows partitions?
- DeSantis' "US Constitution’s 'leverage points'... to exercise the 'true scope' of presidential power". Something new or based on existing theories?
- "Solvitas perambulum": Is this real Latin?
- Generate the hyphenation of a given list of words
- Date Checking in C++
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Mouse Without Borders
- 1 contributor
Mouse Without Borders enables you to control up to 4 computers from the same machine.
Troubleshooting
Known issues.
- Control a set of machines using the same keyboard/mouse.
- Share clipboard between the machines.
- Transfer files between the machines.
How to use Mouse Without Borders
With the latest version of PowerToys installed, you will see Mouse Without Borders listed in the PowerToys Settings, where you will need to do some initial configuration.
Initial Configuration
Open Mouse Without borders in PowerToys Settings to configure your connections.
On the first computer, select New Key to generate a security key for connecting.

On the second computer, enter the Security Key that was generated on the first computer and the name of the first computer. Then select Connect .

Once the computers connect to each other, you will be able to switch between them by moving your mouse curser beyond the edge of the screen, transitioning between computers.

It's possible to switch the order of the devices by dragging the device icon to a new position in the layout.
Install Mouse Without Borders as a service
To allow Mouse Without Borders to control elevated applications or the lock screen from another computer, it's possible to run Mouse Without Borders as a service under the System account.
To enable the service mode, run PowerToys in administrator mode and enable the Use Service setting in the Mouse Without Borders settings page.
Running Mouse Without Borders as a service account brings added control and ease of use to the controlled machines, but this also brings some additional security risks in case someone wants to use Mouse Without Borders as an attack vector. Be mindful of your risk tolerance.
Mouse Without Borders Settings
If you can't setup the initial connection:
- Make sure all machines are connected on the same network.
- Check if the security key and computer host name are correctly inserted.
- Check if the Firewall is blocking connections. Select Add a firewall rule for Mouse Without Borders to make adjustments.

If the connection is lost:
- Make sure the machines are still connected.
- Select Refresh connections in Settings (or use the Refresh shortcut).
- Copy/Paste between machines only works with a single file and the size limit is 100MB.
- Drag/Drop between machines works with single file only and it does not work with network files.
- Copy/Paste, Drag/Drop does not work with folder and multiple files, the workaround is to zip them first.
- If the host machine has a full-screen focused Remote Desktop/virtual machine window (or some kind of simulator window), the keyboard might not follow the mouse to another machine. The workaround is to enable the option "Hide mouse at screen edge" in the Settings or switch the focus to another window first.
- The mouse pointer might be invisible if there is no physical mouse attached to the machine. Plug in an unused mouse or turn on Mouse Keys in Control Panel.
- Some settings may not sync correctly and may need to be manually changed to be the same on all machines.
Submit and view feedback for
Additional resources
- Stack Overflow Public questions & answers
- Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers
- Talent Build your employer brand
- Advertising Reach developers & technologists worldwide
- About the company
Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Assign a Keyboard key to a button click WINFORM
I am developing a small application with some buttons and textbox. What I am having problem is assigning a keyboard key (e.g. F3) to a button click.
For example if the user click the button Cash the code I wanted it's executed fine, but I want to make more easier instead clicking the button with mouse, I want the user be able to press the key on keyboard. I used the keydown event, also keypress event of that button, but still nothing.
I tried this keydown event
But still nothing
- can you share the code you have written for this? and explain the issue you are facing there? – Chetan May 17, 2020 at 12:50
- You don't need a Mouse click, you need to detect when a Key or combination of Keys is pressed and call the same method that you Button.Click handler calls. If you have inserted code in the Click handler, move it to a method (where it belongs anyway). – Jimi May 17, 2020 at 12:55
- @ChetanRanpariya I edited the question(added the code you asked for) – Leo Mujaj May 17, 2020 at 12:58
- @Jimi any example code, cause I am new(student) – Leo Mujaj May 17, 2020 at 12:58
Do not use F3 function button it's used by OS for activating search. Enter key is fairs click event on focused control so do not use this also. Implement as suggested below. In your Main form
Set KeyPreview to True in form load event. Add KeyDown event handler with the following code

- I tried this one now, but still nothing is happening. No errors, not execution of code ,, nothing – Leo Mujaj May 17, 2020 at 13:35
- Are you Set KeyPreview = True; in form load? What key you pressed I set Control + H key, is the debugger hit form keydown event? – Rajanikant Hawaldar May 17, 2020 at 13:40
Your Answer
Sign up or log in, post as a guest.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct .
Not the answer you're looking for? Browse other questions tagged c# winforms key or ask your own question .
- The Overflow Blog
- How to use marketing techniques to build a better resume
- How the creator of Angular is dehydrating the web (Ep. 574)
- Featured on Meta
- AI/ML Tool examples part 3 - Title-Drafting Assistant
- We are graduating the updated button styling for vote arrows
- Temporary policy: ChatGPT is banned
- Stack Overflow will be testing a title-drafting assistant, and we’d like your...
- We are graduating the "Related questions using Machine Learning" experiment
- The [connect] tag is being burninated
Hot Network Questions
- Looking for an Interpretation of The Blue Cliff Record
- Could ancient astronomers have proven heliocentrism?
- Understanding a simplifying assumption in Invariant Subspace Problem proof
- Is limit about functions?
- What is this small hovering bird with a yellow throat, breast, and belly, and a brown back and head, found in the Philippines?
- Why did Trinity not take Neo to Morpheus when meeting him in the club?
- Did Nelson Mandela read The Economist in prison?
- Physics feasibility of a light-gas driven rifle cartridge? Diagram example included
- Who said that one should change one’s direction of research every seven years?
- How to measure land area for a map?
- Where do forge-worms live outside of forges?
- What happens if an insurance company does not mention a critical clause of a policy during a telephone purchase?
- Reverse blood flow in an IV
- Idiom for doing something you didn't ask
- Strange 3D Animal Movie Set in Venice?
- How change the data arrangement in a list?
- Should the chain diverge that much?
- Alignment of single verses with the verse package
- Does an Arahant or Buddha still like music they liked as a lay person?
- integer solutions of exponential equation
- How many sorting networks?
- Ubuntu installation on laptop. What to do with Windows partitions?
- Are MD and MC both able to study both equilibrium and non-equilibrium systems?
- A funny bug with input, newcommand, ifthenelse in a beamer
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .

IMAGES
VIDEO
COMMENTS
To reassign a button for a specific program. Using the mouse that you want to configure, start Microsoft Mouse and Keyboard Center. Select the app-specific settings. Click Add New button, select the program that you want. If the program that you want is not on the list, click Manually Add a Program at the bottom, select the program.
Press and hold 1 to move down diagonally to the left, and 3 to move down diagonally to the right. If the mouse doesn't move when you press and hold these keys, press the Num Lock key again. 9. Select left-click or right-click. When you're using Mouse Keys, the 5 key on the numeric keypad acts as your mouse button.
To control the mouse pointer using the keyboard on Windows 10, use these steps: Open Settings. Click on Ease of Access. Click on Mouse. Turn on the Control your mouse with a keypad toggle switch ...
It will still work when you use this code below. c:: MouseClick, Left. It will Click when you Press C however if you hold down the C key it will constantly spam click you can fix this issue by using Click, Down as shown below. c:: Click, down. Now when the C key is pressed it will Click once and hold it while the C key is pressed down activing ...
Press. Select the left mouse button. The forward slash (/) Select both buttons. The asterisk ( ) Select the right mouse button. The minus sign (-) Note: If you choose to make the left mouse button the active button, it will remain the active button until you choose another button. After you select a mouse button, you don't need to select a ...
On the Set up Mouse Keys screen, check the "Turn on Mouse Keys" box to enable the feature. If you want to turn on Mouse Keys quickly using a shortcut, check the "Turn on Mouse Keys with left ALT + left SHIFT + NUM LOCK" box. If you want a warning message to display when you use the shortcut to turn on Mouse Keys, check the "Display a ...
After you install it, launch PowerToys Settings, then click "Keyboard Manager" in the sidebar. In the "Keyboard Manager" settings, click "Remap a Key.". When the "Remap Keyboard" window pops up, click the plus button ("+") to add a new key mapping. After that, you'll need to define which key you want to remap (in the ...
Click Keyboard Manager, then select Remap a key to re-assign individual keys or Remap a shortcut to assign hotkey combinations to a single key. Click the + button, then set the key and map it to a ...
It will let you assign a key to do 1 or more clicks, or click repeatedly, but will NOT let you assign a key to a mouse button. You cannot hold the mouse button by holding down the keys, do drag and drop, and so on. ... Assign left mouse click to a keyboard key. 1. Want to use right mouse button for caps typing with on-screen keyboard. 5.
1. Mapping keyboard key to mouse button. Install autohotkey. create a script > Right click on desktop -> New -> autohotkey script. Update the script with mapping F1::Lbutton. Save the script. Run the script by double clicking it. Now pressing F1 key on your keyboard will act like a mouse left button. Share.
Assign left mouse click to a keyboard keyHelpful? Please support me on Patreon: https://www.patreon.com/roelvandepaarWith thanks & praise to God, and with t...
Open Mouse Without borders in PowerToys Settings to configure your connections. On the first computer, select New Key to generate a security key for connecting. On the second computer, enter the Security Key that was generated on the first computer and the name of the first computer. Then select Connect. Once the computers connect to each other ...
Press Start, type Control Panel and click to open it. Click on Ease of Access. Select Ease of Access center. Scroll down and click on Make the mouse easier to use . Under "Control the mouse with the keyboard", check the box next to Turn on Mouse Keys and click Apply . You should see MouseKeys running in the system tray.
What I am having problem is assigning a keyboard key (e.g. F3) to a button click. For example if the user click the button Cash the code I wanted it's executed fine, but I want to make more easier instead clicking the button with mouse, I want the user be able to press the key on keyboard.
Press any key and reassign it to a different key. You can also assign it o the same key if you are sure your keyboard is fine. This should temporarily fix your problem with the Squad game. Method 4: Delete temporary files from the PC. Temporary files are files stored by the pc to give you quick access to the sites you have previously visited.