no need for calling it within a loop, but are you sure key_presses is called?