use the addKeyToAgent method for KeyModel. Also add a check of EOF in addKeyToAgent under linux/Mac
merge
Merge pull request #20 from l1ll1/CVLFAB-545-two-part-ui

Cvlfab 545 two part ui