fixed the magic numbers for the keyboard to the constants
fixed the keyboard listener from magic numbers to constants