To find out the keycode to use, look at keysymdef.h, output of "xmodmap -pm" and the source isPressed.c
with the defines from keysymdef.h remove the XK_ from the name before passing it to isPressed
Examples:
isPressed Button1 # left mouse button
isPressed Control # control button
isPressed Shift_R # Right shift button