enable caps lock python keyboard code example Example: python string caps lock >>> s = 'sdsd' >>> s.upper() 'SDSD'