thorin was too wretched to be angry any longer at his misfortunes , and was even beginning to think of telling the king all about his treasure and his quest ( which shows how low-spirited he had become ) , when he heard bilbo 's little voice at his keyhole .