No need for another import:
if wx.GetKeyState(wx.WXK_CAPITAL): # We still render fully if CapsLock is set... self.simplify_it = False