Keyboard Input Injection

December 29, 2025 ยท View on GitHub

A lightweight, header-only alternative for emulating keyboard events.


Features

  • Utilizes the undocumented NtUserInjectKeyboardInput syscall.
  • Usage is identical to the keybd_event function in the Windows API.
  • Header-only design makes it easy to integrate into your program.

Usage

  • Download and include the keybd_input_injection.h header in your project.
  • Replace calls to keybd_event with my_keybd_event.

License

This project is licensed under TOSSUCU License 2025.9.

See also

Mouse Input Injection.