fixed mapping g key bug