Asteroid Ship Movement

Alright, I have the basic Asteroid code (from scratch), and I want my ship to have a maximum velocity.
I gave it a maximum xspeed and yspeed, however, if I am on an angle less than 45, it will reach the maximum x-speed, but the y-speed will contiunue to increase.
Any tips?:kir: