How to create an Rails Shooter Character

I got it to kinda work. It rotates to the left and right but not up and down and I have to move around a bit before it gets aligned with my mouse.