a bug when I use the hotkeys buttons


I have a trouble when I use a hotkey button of keyboard in order to insert quickly a new record in a master/detail form.

What happens is that if I press for example alt + g the record is inserted, but if I edit this record and press alt + g again this record is inserted again.

How can I validate that this record has been inserted so the system reports me when it is in update mode and does not allow to insert it again ?