Wait for a keypress

The wait_for_key method only responds on enter for me, am I doing something wrong?