Context is that protagonist suddenly found himself in unusual place/situation and trying to understand where he is and how he can possibly got there. After some rejected ideas he "thinks" this. (Situation in no way is related to "lever").
"Complete" sentence is:
I'm not even sure if it should be read as て こと は or てこ と は. Both variants seems to make no sense. From context I suspect that it may be some swear, but edict has many swear words, but not this...
edit: added context