 	SetKey( mod, "Right", "MouseRight" )
 }
 
+; Set up one hotkey by combining the modifier and key names.
+; Take the specified action on key down,
+; and always stop acceleration on key up.
 SetKey( mod, key, action ) {
 	keydown = %mod% & %key%
 	Hotkey %keydown%, %action%
 	Hotkey %keydown% UP, StopAcceleration
 }
 
+; Move the mouse the specifed x and y distances, both scaled by the
+; mouse acceleration factor calculated from the key repeat count.
 Move( x, y ) {
 	global repeat
 	++repeat

	MouseMove, x, y, 0, R
}

MouseUp:
	Move( 0, -1 )
	return

	Move( 1, 1 )
	return

; Handle the keyup for all hotkeys
StopAcceleration:
	repeat = 0
	return

; Handle the About menu item
MenuAbout:
	Run, http://www.jklmouse.com/
	return
