Practice slowly. Check that the fingers are absolutely relaxed when not used to hold down a key at all times. Check that your wrists are free from tension at all times. Only increase speed if you can do this. Do not increase speed further than where you can still do this and be patient, speed will come automatically in its own time if you do things right.
But the best solution is to get a good teacher, it's the most efficient route to solving this issue!