Use arrow keys to aim the blaster. Press A and then drag your cursor to aim the sentry gun. Up, Down keys to switch from normal blaster mode to proper aiming mode.
It tells me to say how I made it so I guess I used Scratch and lots of months of practice coding.