this is the keyboard routine
k = INP(&H60): kbd(k AND 127) = keystate(k)
xv = kbd(77) - kbd(75)
yv = kbd(80) - kbd(72)
GOSUB animate
screenmem%(mx%, my%) = 32
IF xv = -1 AND screenmem%(mx% - 1, my%) = 32 THEN mx% = mx% - 1
IF xv = 1 AND screenmem%(mx% + 1, my%) = 32 THEN mx% = mx% + 1
IF yv = -1 AND screenmem%(mx%, my% - 1) = 32 THEN my% = my% - 1
IF yv = 1 AND screenmem%(mx%, my% + 1) = 32 THEN my% = my% + 1
IF xv = -1 AND screenmem%(mx% - 1, my%) = 176 THEN mx% = mx% - 1: GOTO skp
IF xv = 1 AND screenmem%(mx% + 1, my%) = 176 THEN mx% = mx% + 1: GOTO skp
IF yv = -1 AND screenmem%(mx%, my% - 1) = 176 THEN my% = my% - 1: GOTO skp
IF yv = 1 AND screenmem%(mx%, my% + 1) = 176 THEN my% = my% + 1: GOTO skp
IF xv = -1 AND screenmem%(mx% - 1, my%) = 79 AND screenmem%(mx% - 2, my%) = 32 THEN screenmem%(mx% - 2, my%) = 79: screenmem%(mx% - 1, my%) = 32: mx% = mx% - 1
IF xv = 1 AND screenmem%(mx% + 1, my%) = 79 AND screenmem%(mx% + 2, my%) = 32 THEN screenmem%(mx% + 2, my%) = 79: screenmem%(mx% + 1, my%) = 32: mx% = mx% + 1
IF xv = -1 AND screenmem%(mx% - 1, my%) = 4 THEN mx% = mx% - 1: score = score + 1
IF xv = 1 AND screenmem%(mx% + 1, my%) = 4 THEN mx% = mx% + 1: score = score + 1
IF yv = 1 AND screenmem%(mx%, my% + 1) = 4 THEN my% = my% + 1: score = score + 1
skp:
_DELAY 0.10
i am just not sure how to mod it to accept the left control and arrow together
IF xv = -1 AND (cntrl pressed) and screenmem%(mx% + 1, my%) = 79 AND screenmem%(mx% - 1, my%) = 32 THEN 'control + left to pull rock on right (i can work out what to swap myself)
IF xv = 1 AND (cntrl pressed) and screenmem%(mx% - 1, my%) = 79 AND screenmem%(mx% +1, my%) = 32 THEN 'control + right to pull rock on left (just the keyboard routine im lost)