Microsoft Edge Try Microsoft Edge A fast and secure browser that's designed for Windows 10 Get started

This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more
Microsoft Microsoft
Windows Dev Center
    • .NET
      • Apps
      • Internet of Things
      • Mixed Reality
      • Microsoft Edge
      • Hardware
      • IT Center
      • What is Azure
      • Products
      • Solutions
      • Pricing
      • Create a free account
      • Visual Studio
      • Visual Studio IDE
      • Visual Studio Team Services
      • Visual Studio Code
      • Xamarin
      • Visual Studio Dev Essentials
      • Subscriptions
      • Office Dev Center
      • Office 365 for IT pros
    • Microsoft Graph
      • Store
      • Cortana
      • Bing
      • Application Insights
      • .NET
      • Microsoft Azure
      • Microsoft Graph
      • Visual Studio
      • Visual Studio Team Services
      • Windows
      • Office
      • All Developer Centers
    • TechNet
    • Microsoft Developer Network
      • Windows IT Center
      • Office 365 for IT Pros
      • All IT TechCenters
      • Microsoft Download Center
      • Microsoft Azure
      • Visual Studio
      • SDKs
      • Windows
      • Office
      • Microsoft Graph
      • MSDN
      • Azure
      • Windows
    • PowerShell scripts
      • Microsoft Azure
      • Visual Studio
      • Visual Studio Team Services
      • Developer tools
      • Office Dev Blog
      • Server & management
      • Windows
      • Developers
      • TechNet
      • Microsoft Tech Community
      • Visual Studio (MSDN) subscriptions
      • Microsoft Cloud Essentials
      • Microsoft Virtual Academy
      • IT Pro Career Center
    • Microsoft Evaluation Center
    • Channel 9
    • No results
    Sign in
    Windows Dev Center Dashboard
    Windows desktopGet startedDesignDevelopTest & deploy
    • API reference
    • Downloads
    • Samples
    • Support
    Dashboard
    Keyboard and Mouse Input Keyboard Input Keyboard Input Reference
    Keyboard Input Reference Keyboard Input Functions
    Keyboard Input Functions
    Keyboard Input Functions
    Keyboard Input Functions
    ActivateKeyboardLayout
    BlockInput
    EnableWindow
    GetActiveWindow
    GetAsyncKeyState
    GetFocus
    GetKBCodePage
    GetKeyboardLayout
    GetKeyboardLayoutList
    GetKeyboardLayoutName
    GetKeyboardState
    GetKeyboardType
    GetKeyNameText
    GetKeyState
    GetLastInputInfo
    IsWindowEnabled
    keybd_event
    LoadKeyboardLayout
    MapVirtualKey
    MapVirtualKeyEx
    OemKeyScan
    RegisterHotKey
    SendInput
    SetActiveWindow
    SetFocus
    SetKeyboardState
    ToAscii
    ToAsciiEx
    ToUnicode
    ToUnicodeEx
    UnloadKeyboardLayout
    UnregisterHotKey
    VkKeyScan
    VkKeyScanEx
    Keyboard Input Messages
    Keyboard Input Notifications
    Keyboard Input Structures
    Keyboard Input Constants
    TOC
    Collapse the table of content
    Expand the table of content
    This documentation is archived and is not being maintained.
    This documentation is archived and is not being maintained.

    Keyboard Input Functions

    In This Section

    • ActivateKeyboardLayout
    • BlockInput
    • EnableWindow
    • GetActiveWindow
    • GetAsyncKeyState
    • GetFocus
    • GetKBCodePage
    • GetKeyboardLayout
    • GetKeyboardLayoutList
    • GetKeyboardLayoutName
    • GetKeyboardState
    • GetKeyboardType
    • GetKeyNameText
    • GetKeyState
    • GetLastInputInfo
    • IsWindowEnabled
    • keybd_event
    • LoadKeyboardLayout
    • MapVirtualKey
    • MapVirtualKeyEx
    • OemKeyScan
    • RegisterHotKey
    • SendInput
    • SetActiveWindow
    • SetFocus
    • SetKeyboardState
    • ToAscii
    • ToAsciiEx
    • ToUnicode
    • ToUnicodeEx
    • UnloadKeyboardLayout
    • UnregisterHotKey
    • VkKeyScan
    • VkKeyScanEx

     

     

    Show:
    Print Export (0)
    Print Share
    IN THIS ARTICLE
      Is this page helpful?
      Additional feedback?
      1500 characters remaining
      Thank you! We appreciate your feedback.
      What's new
      • New Surface Pro
      • Xbox One X
      • Xbox One S
      • Surface Laptop
      • Windows 10 apps
      • Office apps
      • Mixer
      Store & Support
      • Account profile
      • Download Center
      • Sales & support
      • Returns
      • Order tracking
      • Store locations
      • Support
      Education
      • Microsoft in education
      • Office for students
      • Office 365 for schools
      • Deals for students & educators
      • Microsoft Azure in education
      Enterprise
      • Microsoft Azure
      • Enterprise
      • Data platform
      • Find a solutions provider
      • Microsoft partner resources
      • Microsoft AppSource
      • Manufacturing & resources
      • Financial services
      Developer
      • Microsoft Visual Studio
      • Windows Dev Center
      • Microsoft Developer Network
      • TechNet
      • Microsoft Virtual Academy
      • Microsoft developer program
      • Channel 9
      • Office Dev Center
      Company
      • Careers
      • About Microsoft
      • Company news
      • Privacy at Microsoft
      • Investors
      • Diversity and inclusion
      • Accessibility
      • Security
      English (United States)
      • Sitemap
      • Contact us
      • Privacy & cookies
      • Terms of use
      • Trademarks
      • About our ads
      • © Microsoft 2017
      English
      Deutsch English Español Français
      Italiano 日本語 한국어 Português
      Pусский 简体中文 繁體中文
       
      © 2017 Microsoft