the prototype of g_signal_connect_data was wrong
declare a few more of the gdk structures
key presses seem to be registered fine and my parsing of the structure works as well

cursor moved to 10.
cursor moved to 11.
key prdessed (8 49 1 1)
key prdessed (8 50 1 2)
kind of responds to keys but backspace and return dont work
key entry works now
now a callback is called when the ip address changes