Added Inputs code

-Added mouse and keyboard inputs code
-Added critical sections to sync. threads
-Fixed bug in send function
-Still missing keyboard and mouse wheel msg