add key listener

restart a game with space key