Use WASD to move and use spacebar to jump. When you collect stars, you can press f to shoot them. On the first level, walk over the switch to open the door, but be warned, not all of the levels are like this.