keyboard
up and down
This should be easy for you guys - dllcall("keybd_event" - Ask for Help
This should be easy for you guys - dllcall("keybd_event" - posted in Ask for Help: If this stands for space down and space up: dllcall(keybd_event, int, 32, int, 57, int, 0, int, 0) dllcall(keybd_event, int, 32, int, 57, int, 1, int, 0) What does stand for the up arrow and the enter key?
https://autohotkey.com/board/topic/111454-this-should-be-easy-for-you-guys-dllcallkeybd-event/

doc
keybd_event function (winuser.h)
Synthesizes a keystroke. The system can use such a synthesized keystroke to generate a WM_KEYUP or WM_KEYDOWN message. The keyboard driver's interrupt handler calls the keybd_event function. Note This function has been superseded. Use SendInput instead. void keybd_event( BYTE bVk, BYTE bScan, DWORD dwFlags, ULONG_PTR dwExtraInfo ); Type: BYTE A virtual-key code.
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-keybd_event

alt tab
MFC : keybd_event 코드표
void keybd_event( BYTE bVk, // 가상 키코드 BYTE bScan, // 하드웨어 스캔 코드 DWORD dw...
https://m.blog.naver.com/PostView.nhn?blogId=ikari13&logNo=70087179768&proxyReferer=https%3A%2F%2Fwww.google.com%2F


