I make a living finding people who are longing for the next step in their career and I am very good at it. Not so good however, that I can talk someone into making a career move. People come to that decision themselves and once they do, they make the move.
You can’t prevent people from having career aspirations. However, as an employer, there are things you can control that keep your key employees engaged thereby, retaining them.