From your very brief description, it is impossible to know what you are talking about. If you provded more details about exactly what you are doing (including screenshots) we may be able to help.
What kind of keyframe... What you are saying is just about impossible. Press alt/option + p to reveal he position property and set a keyframe.
The only thing I can think of is that you had auto keyframes turned on and now you have turned it off.