key press handler and story work