I used
Sprite.SetPosition(Event.MouseMove.X, Event.MouseMove.Y);
So basically the the sprite moves along with my mouse(because it's in a while loop). Anyway, every time i click something, like the space bar or the mouse button(anything at all) the sprite teleports to the top left corner of the window, and comes back to the mouse pointer after the button is released. How can I stop this, it's very annoying.