Can't Close Photoshop

I am having a bear of a time trying to close Photoshop at times. This problem happens both on my home computer and my office computer.

It affects tool selection, and document tab selection.

I will be working on a document and will occasionally tab over to another open program. When I return to Photoshop I can't select tools or the document. I can't even minimize the program. I will even try to close the program and the "Quit Photoshop" line is grayed out.