KEYEVENTF_EXTENDEDKEYが必要
#uselib "user32.dll"
#func keybd_event "keybd_event" int, int, int
#define global KEYEVENTF_EXTENDEDKEY 1
#define global KEYEVENTF_KEYUP 2
a="あいうえお\nかきくけこ"
mesbox a,100,100
wait 100
keybd_event 40
keybd_event 40,,KEYEVENTF_KEYUP
keybd_event 16,,KEYEVENTF_EXTENDEDKEY
keybd_event 38,,KEYEVENTF_EXTENDEDKEY
keybd_event 38,,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP
keybd_event 16,,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP