Brain focus pills mostly contain chemical components like L-theanine which is naturally found in green and black tea. It’s associated with enhancing alertness, cognition, relaxation, arousal, and reducing anxiety to a large extent.  Theanine is an amino and glutamic acid that has been proven to be a safe psychoactive substance. Some studies suggest that this compound influences, the expression in the genes present in the brain which is responsible for aggression, fear, and memory. This, in turn, helps in balancing the behavioral responses to stress and also helps in improving specific conditions, like Post Traumatic Stress Disorder (PTSD).
^ EFSA Panel on Dietetic Products, Nutrition and Allergies; European Food Safety Authority (EFSA), Parma, Italy (2011). "Scientific Opinion on the substantiation of health claims related to L-theanine from Camellia sinensis (L.) Kuntze (tea) and improvement of cognitive function (ID 1104, 1222, 1600, 1601, 1707, 1935, 2004, 2005), alleviation of psychological stress (ID 1598, 1601), maintenance of normal sleep (ID 1222, 1737, 2004) and reduction of menstrual discomfort (ID 1599) pursuant to Article 13(1) of Regulation (EC) No 1924/2006". EFSA Journal. 9 (6): 2238. doi:10.2903/j.efsa.2011.2238.

I took the pill at 11 PM the evening of (technically, the day before); that day was a little low on sleep than usual, since I had woken up an hour or half-hour early. I didn’t yawn at all during the movie (merely mediocre to my eyes with some questionable parts)22. It worked much the same as it did the previous time - as I walked around at 5 AM or so, I felt perfectly alert. I made good use of the hours and wrote up my memories of ICON 2011.
The use of cognition-enhancing drugs by healthy individuals in the absence of a medical indication spans numerous controversial issues, including the ethics and fairness of their use, concerns over adverse effects, and the diversion of prescription drugs for nonmedical uses, among others.[1][2] Nonetheless, the international sales of cognition-enhancing supplements exceeded US$1 billion in 2015 when global demand for these compounds grew.[3]