Use arrow keys for controls. Press "space" to fire torpedoes, just don't spam or it will break the muzzle flash. Press the "c" key to change the torpedo firing type: Multi-shot or single-shot.
All code and art by me. Credit to Star Trek: Next Generation and Star Trek: The Original Series for the sound effects and the ideas. Thanks to @pbwithj5, I got the idea of adding retro thrusters when the ship slows down. I'm not entirely sure what retro means, but I think it stands for retrograde which means "directed or flying backwards."