adding logic to make screenshots with the key 'a'