How do I fix my shiftlock system?

So I made a shiftlock system and the locking part it self works just fine, but when ever I unlock the camera I can’t drag it acrose the screen anymore. The only way to move it is with the arrow keys, does anyone know what I can do to fix this?

[CODE]