Added keyboard input libraries and threads