Added additional Constructor to Object. Removed deprecated code in KeyInput