нужно скачать программу AutoHotcey ссылка:
https://www.autohotkey.comи создать скрипт
вот:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#HotkeyInterval 1000 ; Prevent Script from bugging out when you press the keys too quickly in succession.
Esc::ExitApp ; Exit script with Escape key
^!s::Suspend ; Suspend script with Ctrl+Alt+S
w::Up
s::Down
a::Left
d::Right
LButton::z
RButton::x
MButton::c