Prevent multiple enter or send keypresses from sending duplicate messages