In Godot I come across that issue as a key is both pressed and released as two actions when the button is pressed once.