Add 'when' to keywords list