changing isMousePressed and isKeyPressed to vars instead of fxns closes #182