 SetKey( on, mod, key, action ) {
 	keydown = %mod% & %key%
 	if( on ) {
-		Hotkey %keydown%, %action%
-		Hotkey %keydown% UP, StopAcceleration
+		Hotkey, %keydown%, %action%, On
+		Hotkey, %keydown% UP, StopAcceleration, On
 	}
 	else {
-		Hotkey %keydown%, Off
-		Hotkey %keydown% UP, Off
+		Hotkey, %keydown%, %action%, Off
+		Hotkey, %keydown% UP, StopAcceleration, Off
 	}
 }
 


#SingleInstance force

version := "0.2x"

; Use either the embedded icon in a compiled .exe,
; or a separate .ico file when running the .ahk script.
iconPath := RegExReplace( A_ScriptFullPath, "i).ahk$", ".ico" )

keyMap := ""


	return

MenuESDF:
	setKeysLeft( "ESDF" )
	return

MenuWASD:
	setKeysLeft( "WASD" )
	return

MenuIJKL:
	setKeysRight( "IJKL" )
	return

MenuHJKL:
	setKeysRight( "HJKL" )
	return

