Added Java code for keypad and basic networking