Given below code that creates a new app window to display a picture from the local file system, how can I add support to detect a "keypress" event and quit the application?
package main
import (
"flag"
_ "image/gif"
_ "image/jpeg"
_ "image/png"
"fyne.io/fyne"
"fyne.io/fyne/app"
"fyne.io/fyne/canvas"
"fyne.io/fyne/widget"
)
func main() {
flag.Parse()
a := app.New()
w := a.NewWindow("Image Viewer")
img := canvas.NewImageFromFile("/home/mh-cbon/Images/7.png")
img.FillMode = canvas.ImageFillContain
scroll := widget.NewScrollContainer(img)
scroll.Resize(fyne.NewSize(400, 400))
w.SetContent(scroll)
w.Resize(fyne.NewSize(400, 400))
w.Show()
a.Run()
}