keyPressed question

Hi.
I want to use a Return Key in my player to start playback, but this key always works on the last time the button was turned on. Why and how to change this?
if (key == KeyPress::returnKey {...}
Thank you in advance.