Replace keyboard char code to constants