Move function `press_button_key() to `external.c
Add UDP network support
Flush output buffer to file
Add simple UDP client
Bug fix for `usleep