Corrected inputbox event handlers.