Keyboard's "g" key not working
Are you sure this is not a hardware problem, try checking with another keyboard or reboot and enter bios setup and test key by setting a password for bios, if key is not working try cleaning it, something may be lodged under it. If the key is "just blocked" in Ubuntu please let me know the details of the system > preference > keyboard [Layouts Tab].