OSK.EXE: The Complete Guide to Windows On-Screen Keyboard

When you type osk.exe in the Windows Run dialog, you launch the On-Screen Keyboard, a built-in accessibility tool that displays a clickable keyboard on your screen. This utility helps people who cannot use a physical keyboard, need to enter text with a mouse or touchscreen, or want to protect passwords from keyloggers.

In this guide, you’ll learn exactly what osk.exe does, how to use it effectively, when it matters most, and how to troubleshoot common problems.

What Is OSK.EXE?

OSK.exe is the executable file for Windows On-Screen Keyboard. This program sits in your Windows system folder (usually C:\Windows\System32\osk.exe) and provides a visual keyboard interface on your display.

The tool serves multiple purposes:

  • Accessibility: People with mobility impairments can type using a mouse, stylus, or eye-tracking device
  • Touch input: Tablet users get a convenient way to enter text
  • Security: Some users activate it to avoid hardware keyloggers that record physical keystrokes
  • Hardware failure: When your physical keyboard breaks, osk.exe becomes a temporary solution

Microsoft includes this tool in every Windows version from XP through Windows 11. The file size stays small (around 150-200 KB), and it requires minimal system resources.

OSK.EXE

How to Open the On-Screen Keyboard

Method 1: Run Command

Press Windows + R to open the Run dialog. Type osk.exe and press Enter. The keyboard appears within seconds.

Method 2: Start Menu Search

Click the Start button and type “on-screen keyboard” in the search box. Click the app when it appears in results.

Method 3: Settings Menu (Windows 10/11)

  1. Open Settings (Windows + I)
  2. Navigate to Accessibility
  3. Click Keyboard
  4. Toggle “On-Screen Keyboard” to On

Method 4: Quick Access Shortcut

Press Windows + Ctrl + O to toggle the on-screen keyboard on or off instantly.

Method 5: Sign-In Screen

At the Windows login screen, click the Ease of Access icon in the bottom-right corner. Select “On-Screen Keyboard” from the menu.

Key Features and Layout Options

The on-screen keyboard adapts to your needs with several viewing modes and customization options.

Standard Layout

The default view shows a full QWERTY keyboard with:

  • Letter keys A through Z
  • Number row from 1 to 0
  • Function keys F1 through F12
  • Navigation keys (arrows, Home, End, Page Up, Page Down)
  • Modifier keys (Shift, Ctrl, Alt, Windows key)
  • Special characters and punctuation
See also  Network Error Connection Failed on Windows 11/10: How to Fix It in 2026

Hover Mode

This feature lets you type without clicking. When enabled, you hover your cursor over a key for a predetermined time, and the keyboard types that character automatically.

To enable hover mode:

  1. Click “Options” in the bottom-right of the keyboard
  2. Check “Hover over keys”
  3. Set your preferred hover duration (0.5 to 3.0 seconds)
  4. Click “OK”

This setting helps users who struggle with precise mouse clicks.

Click Sound Feedback

The keyboard can play an audible click when you select keys. This audio confirmation helps users who need sensory feedback.

Enable it through Options by checking “Use click sound.”

Number Pad Toggle

Click the “Options” button and check “Turn on numeric keypad” to display a calculator-style number pad on the right side of the keyboard. This makes number entry faster for spreadsheets or data input tasks.

Prediction and Text Suggestions

In Windows 10 and 11, the on-screen keyboard includes word prediction similar to smartphone keyboards. As you type, it suggests complete words above the keyboard. Click a suggestion to insert it instantly.

Enable predictions through the Options menu by checking “Use Text Prediction.”

Using OSK.EXE for Enhanced Security

Some security-conscious users launch osk.exe when entering sensitive information like passwords or credit card numbers. Here’s why:

Hardware keyloggers are physical devices or malicious drivers that record every keystroke from your physical keyboard. Since osk.exe processes input through mouse clicks rather than keyboard signals, it bypasses these recording methods.

Important limitations: This approach only blocks hardware-based keyloggers. Screen capture malware and sophisticated spyware can still record your on-screen keyboard activity. For complete security, combine osk.exe with:

  • Updated antivirus software
  • Virtual keyboards from banking apps
  • Two-factor authentication
  • Secure, trusted networks

The Microsoft Security Response Center provides additional guidance on Windows security best practices.

Customizing OSK.EXE Appearance and Behavior

Typing Mode Selection

OSK.exe offers three typing modes under Options:

Click on keys: Standard mode where you click each key with your mouse.

Hover over keys: Automatic typing after hovering for a set duration.

Scan through keys: The keyboard highlights keys in sequence, and you press a hotkey or switch device when your desired key is highlighted. This mode assists users with severe mobility limitations.

Keyboard Transparency

You can make the keyboard semi-transparent so it doesn’t completely block content behind it:

  1. Open Options
  2. Adjust the “Fade” slider
  3. The keyboard becomes transparent when inactive

This feature helps when you need to see underlying text while typing.

Always on Top

By default, osk.exe stays above other windows. You cannot disable this behavior easily because the keyboard needs to remain accessible regardless of which application you’re using.

Troubleshooting Common OSK.EXE Problems

OSK.EXE Won’t Open

Solution 1: Check if the file exists at C:\Windows\System32\osk.exe. If missing, run System File Checker:

  1. Open Command Prompt as Administrator
  2. Type sfc /scannow
  3. Wait for the scan to complete
  4. Restart your computer

Solution 2: Verify that Touch Keyboard and Handwriting Panel Service is running:

  1. Press Windows + R
  2. Type services.msc
  3. Find “Touch Keyboard and Handwriting Panel Service”
  4. Right-click and select “Start” if it’s not running
  5. Set “Startup type” to “Automatic”

Keyboard Types Wrong Characters

This happens when your input language doesn’t match your keyboard layout. Check your language settings:

  1. Click the language indicator in the taskbar
  2. Verify the selected keyboard layout
  3. Add or remove layouts through Settings > Time & Language > Language

OSK.EXE Opens Automatically at Startup

If the on-screen keyboard launches every time you boot Windows:

  1. Open Settings
  2. Go to Accessibility > Keyboard
  3. Toggle “On-Screen Keyboard” to Off
  4. Check Task Scheduler for any tasks triggering osk.exe
See also  ./ Command in Linux: A Beginner's Guide to ./ (dot slash) Command

High CPU Usage from OSK.EXE

The on-screen keyboard typically uses less than 1% CPU. High usage indicates a problem:

  1. Close and reopen the keyboard
  2. Update Windows to patch any bugs
  3. Scan for malware that might be disguising itself as osk.exe
  4. Check Task Manager to verify the osk.exe location (should be System32)

Keys Not Responding to Clicks

Quick fixes:

  • Restart the on-screen keyboard
  • Check if another program has focus
  • Verify mouse drivers are updated
  • Test with a different mouse or touchpad
  • Run Windows Update to get the latest patches

OSK.EXE vs Touch Keyboard in Windows 10/11

Windows 10 and 11 include two separate keyboard tools:

FeatureOSK.EXETouch Keyboard
Primary purposeAccessibilityTablet/touch input
Launch methodosk.exe or SettingsTaskbar icon
Layout optionsBasic QWERTYMultiple themes, emoji
Text predictionBasic (Win 10+)Advanced with learning
CustomizationLimitedExtensive
Split layoutNoYes
Handwriting inputNoYes
Best forMouse users, accessibilityTouchscreen devices

For touchscreen devices, the Touch Keyboard usually provides a better experience. For accessibility with mouse or assistive devices, osk.exe remains the better choice.

Advanced OSK.EXE Commands and Parameters

You can launch osk.exe with command-line parameters for automation or scripting.

Basic Launch Command

osk.exe

This opens the keyboard with default settings.

Creating a Desktop Shortcut

  1. Right-click your desktop
  2. Select New > Shortcut
  3. Enter C:\Windows\System32\osk.exe
  4. Name it “On-Screen Keyboard”
  5. Click Finish

You can now double-click this icon to launch the keyboard instantly.

Starting OSK.EXE from PowerShell or Command Prompt

Open PowerShell or CMD and type:

start osk.exe

This command works in scripts and batch files for automated setups.

When to Use OSK.EXE

The on-screen keyboard solves specific problems:

Broken physical keyboard: Your laptop keyboard stops working, and you need to type urgently. Launch osk.exe to continue working until you can repair or replace the hardware.

Public computer security: You’re using a library or hotel computer and worry about keyloggers. Use osk.exe for password entry as an extra precaution.

Touch-only device: You have a tablet without a connected keyboard. OSK.exe provides text input when the touch keyboard doesn’t appear automatically.

Accessibility needs: Physical disabilities make standard keyboard use difficult. The on-screen keyboard works with various assistive technologies like eye-tracking devices, mouth sticks, or specialized pointing devices.

Remote desktop sessions: When connecting to a remote computer, keyboard input sometimes behaves unpredictably. OSK.exe on the remote machine ensures reliable text entry.

Testing keyboard layouts: You want to see how a different language keyboard is organized before switching your physical layout. The Microsoft Keyboard Layout Creator works alongside osk.exe for this purpose.

OSK.EXE File Location and Properties

Default path: C:\Windows\System32\osk.exe

File size: Approximately 150 KB (varies by Windows version)

Digital signature: Microsoft Windows

Description: On-Screen Keyboard

Product version: Matches your Windows build number

If you find osk.exe anywhere else on your system, investigate immediately. Malware sometimes uses the same filename to avoid detection. Verify the digital signature by right-clicking the file, selecting Properties, and checking the Digital Signatures tab.

Alternatives to OSK.EXE

While osk.exe works well for basic needs, several alternatives offer more features:

Free Windows Touch Keyboard: Built into Windows 10/11, accessed through the taskbar. Better for touch input and includes emoji, handwriting recognition, and themes.

Click-N-Type: A free virtual keyboard with word prediction, macros, and customizable layouts.

See also  How to Manage Overdraft Protection: Step-by-Step Guide 2026

Free Virtual Keyboard: Open-source option with multilingual support and portable mode.

Dasher: Unique text entry system using predictive gestures, excellent for accessibility.

Commercial options: Dragon NaturallySpeaking (voice input), Tobii eye-tracking keyboards, and professional accessibility suites offer advanced features for users with specific needs.

Security Considerations for OSK.EXE

Real osk.exe from Microsoft is safe. However, security issues can arise:

Malware Impersonation

Attackers sometimes name malicious programs “osk.exe” and place them in folders like Downloads or Temp. Always verify:

  1. Check the file location (should be System32)
  2. Verify the digital signature (should be Microsoft Corporation)
  3. Compare file size with a known good version
  4. Scan with updated antivirus software

Screen Recording Risks

While osk.exe protects against hardware keyloggers, it cannot defend against:

  • Screen recording malware
  • Remote access trojans with screen capture
  • Shoulder surfing (someone watching your screen)

Never rely on osk.exe as your only security measure. Use it as one layer in a comprehensive security approach.

Privilege Elevation

OSK.exe runs with user-level privileges. Some older Windows versions had vulnerabilities where attackers could use osk.exe to bypass login screens. Microsoft patched these issues, but always keep Windows updated.

Configuring OSK.EXE in Enterprise Environments

IT administrators can control on-screen keyboard behavior through Group Policy:

  1. Open Group Policy Editor (gpedit.msc)
  2. Navigate to User Configuration > Administrative Templates > Windows Components > On-Screen Keyboard
  3. Configure policies like “Do not show On-Screen Keyboard on the logon screen”

Registry settings also control behavior:

Location: HKEY_CURRENT_USER\Software\Microsoft\Osk

Key values:

  • Hover: Enables hover typing mode
  • UsageTime: Tracks keyboard usage
  • WindowPosition: Stores last position

Backup the registry before making manual changes.

Performance and Resource Usage

OSK.exe is lightweight and efficient:

RAM usage: 5-15 MB depending on Windows version

CPU usage: Less than 1% during normal operation

Startup time: Opens in 1-2 seconds on modern systems

Battery impact: Minimal, suitable for laptop use

The program loads quickly because it’s a core Windows component with optimized code. Unlike third-party virtual keyboards, osk.exe doesn’t install additional services or background processes.

Summary

OSK.exe provides essential functionality for Windows users who need an alternative to physical keyboards. Whether you’re dealing with hardware failure, accessibility requirements, or security concerns, this built-in tool offers a reliable solution.

Remember these key points:

The keyboard launches instantly with Windows + Ctrl + O or by running osk.exe. It includes hover mode, text prediction, and customizable layouts. For touchscreen devices, Windows Touch Keyboard often works better. Always verify the file location and digital signature for security. The tool uses minimal system resources and requires no installation.

Keep Windows updated to ensure you have the latest features and security patches for osk.exe.

Frequently Asked Questions

Is osk.exe safe to run?

Yes, the genuine osk.exe from Microsoft is completely safe. It’s a standard Windows accessibility tool. Always verify the file is located in C:\Windows\System32 and has a valid Microsoft digital signature. Malware sometimes uses the same filename, so check these details if you have concerns.

Can I disable osk.exe permanently?

You can prevent it from starting automatically through accessibility settings, but completely disabling it is not recommended. The file is a protected system component. If it causes problems, investigate the root cause rather than removing it, as you might need it for troubleshooting or accessibility in the future.

Why does osk.exe keep opening by itself?

This usually happens when the accessibility setting is enabled or a program triggers it. Check Settings > Accessibility > Keyboard and turn off the on-screen keyboard toggle. Also check Task Scheduler for automated tasks that might launch osk.exe. Some tablets open it automatically when no physical keyboard is detected.

Does osk.exe work with all programs?

OSK.exe works with nearly all Windows programs that accept keyboard input. Very old software or games that use direct keyboard input methods might not recognize it. Modern applications, browsers, and productivity tools all work perfectly with the on-screen keyboard.

Can I resize or move the on-screen keyboard?

Yes, click and drag the title bar to move it anywhere on your screen. Drag the edges or corners to resize it. The keyboard remembers your preferred size and position. If it gets stuck off-screen after changing display settings, close and reopen it to reset the position.

MK Usmaan