[Change] keyboard above: Check in python instead of JS