Fix minor keyboard shape rotation bug