テスト用のサンプルスクリプトを作りました
スペースキーが出来ません

Gui,Add,Button,GButton1 W242 H30,ボタン1
Gui,Add,Button,GButton2 W242 H30,ボタン2
Gui,Show, , テスト
return

Button1:
MsgBox ボタン1
return
Button2:
MsgBox ボタン2
return

#IfWinActive, テスト
Space::MsgBox SPACE
Up::MsgBox UP
#IfWinActive