fix keypad input

fixed extra spaces in keypad input