mods to GLentries
work on scan codes