It seems from the history that you are having severe headache
associated with pain on pressing the eyes.
Headache is seen in various diseases involving eyes like refractive error
and inflammations of the eye, ENT diseases like sinusitis
, primary headaches
Since the headache is responding to ibuprofen an anti-inflammatory drug, you can continue the drug and do consult the doctor for examination and treatment accordingly depending on the cause.