Detecting keypress then firing laser accordingly.