Fix bug with using "Enter" key after clicking sample program button