Removed dependency on keypress library